1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Refactoring tests

This commit is contained in:
Gabriel Caruso 2017-12-03 02:41:58 -02:00
parent 6bb3ab1868
commit 885da4c8ef
6 changed files with 23 additions and 23 deletions

View file

@ -175,7 +175,7 @@ class ClassMapGeneratorTest extends TestCase
ClassMapGenerator::createMap($finder, null, $io);
$this->assertTrue(in_array($msg, $messages, true), $msg . ' not found in expected messages (' . var_export($messages, true) . ')');
$this->assertContains($msg, $messages, $msg . ' not found in expected messages (' . var_export($messages, true) . ')');
$fs = new Filesystem();
$fs->removeDirectory($tempDir);
@ -242,7 +242,7 @@ class ClassMapGeneratorTest extends TestCase
ClassMapGenerator::dump(array($tempDir), $resultFile);
$fileInDirectory = str_replace('\\', '\\\\', $fileInDirectory);
$this->assertEquals("<?php return array (\n 'TestClass' => '$fileInDirectory',\n);", file_get_contents($resultFile));
$this->assertStringEqualsFile($resultFile, "<?php return array (\n 'TestClass' => '$fileInDirectory',\n);");
$fs = new Filesystem();
$fs->removeDirectory($tempDir);