From 21d74328e307b77f5bcb3748e6d0e31055cf5ac7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 4 Dec 2011 22:00:55 +0100 Subject: [PATCH] Cosmetic fixes --- tests/Composer/Test/Autoload/AutoloadGeneratorTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index f7b327092..d1236d6f0 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -53,9 +53,7 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase return $that->vendorDir; })); - $this->repo = $this->getMockBuilder('Composer\Repository\RepositoryInterface') - ->disableOriginalConstructor() - ->getMock(); + $this->repo = $this->getMock('Composer\Repository\RepositoryInterface'); $this->generator = new AutoloadGenerator(); } @@ -115,6 +113,6 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase 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'); } }