mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix tests again..
This commit is contained in:
parent
901fd838f3
commit
523aef76d0
1 changed files with 4 additions and 8 deletions
|
@ -21,6 +21,10 @@ class CacheTest extends TestCase
|
|||
|
||||
public function setUp()
|
||||
{
|
||||
if (getenv('TRAVIS')) {
|
||||
$this->markTestSkipped('Test causes intermittent failures on Travis');
|
||||
}
|
||||
|
||||
$this->root = sys_get_temp_dir() . '/composer_testdir';
|
||||
$this->ensureDirectoryExistsAndClear($this->root);
|
||||
|
||||
|
@ -46,10 +50,6 @@ class CacheTest extends TestCase
|
|||
|
||||
public function testRemoveOutdatedFiles()
|
||||
{
|
||||
if (getenv('TRAVIS')) {
|
||||
$this->markTestSkipped('Test causes intermittent failures on Travis');
|
||||
}
|
||||
|
||||
$outdated = array_slice($this->files, 1);
|
||||
$this->finder
|
||||
->expects($this->once())
|
||||
|
@ -70,10 +70,6 @@ class CacheTest extends TestCase
|
|||
|
||||
public function testRemoveFilesWhenCacheIsTooLarge()
|
||||
{
|
||||
if (getenv('TRAVIS')) {
|
||||
$this->markTestSkipped('Test causes intermittent failures on Travis');
|
||||
}
|
||||
|
||||
$emptyFinder = $this->getMockBuilder('Symfony\Component\Finder\Finder')->disableOriginalConstructor()->getMock();
|
||||
$emptyFinder
|
||||
->expects($this->once())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue