|
@@ -46,6 +46,9 @@ class CacheTest extends TestCase
|
|
|
|
|
|
public function testRemoveOutdatedFiles()
|
|
|
{
|
|
|
+ // sleeping a bit to let the filesystem cool down on travis or it has intermittent failures
|
|
|
+ usleep(50000);
|
|
|
+
|
|
|
$outdated = array_slice($this->files, 1);
|
|
|
$this->finder
|
|
|
->expects($this->once())
|
|
@@ -66,6 +69,9 @@ class CacheTest extends TestCase
|
|
|
|
|
|
public function testRemoveFilesWhenCacheIsTooLarge()
|
|
|
{
|
|
|
+ // sleeping a bit to let the filesystem cool down on travis or it has intermittent failures
|
|
|
+ usleep(50000);
|
|
|
+
|
|
|
$emptyFinder = $this->getMockBuilder('Symfony\Component\Finder\Finder')->disableOriginalConstructor()->getMock();
|
|
|
$emptyFinder
|
|
|
->expects($this->once())
|