1
0
Fork 0

Cosmetic fixes

pull/142/head
Jordi Boggiano 2011-12-04 22:00:55 +01:00
parent a19695cdcb
commit 21d74328e3
1 changed files with 2 additions and 4 deletions

View File

@ -53,9 +53,7 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase
return $that->vendorDir; return $that->vendorDir;
})); }));
$this->repo = $this->getMockBuilder('Composer\Repository\RepositoryInterface') $this->repo = $this->getMock('Composer\Repository\RepositoryInterface');
->disableOriginalConstructor()
->getMock();
$this->generator = new AutoloadGenerator(); $this->generator = new AutoloadGenerator();
} }
@ -115,6 +113,6 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase
private function assertAutoloadFiles($name, $dir) private function assertAutoloadFiles($name, $dir)
{ {
$this->assertEquals(file_get_contents(__DIR__.'/Fixtures/autoload_'.$name.'.php'), file_get_contents($dir.'/autoload_namespaces.php')); $this->assertFileEquals(__DIR__.'/Fixtures/autoload_'.$name.'.php', $dir.'/autoload_namespaces.php');
} }
} }