From 8d3f20af561bb6346c9b349fcd40937a5d898987 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 22 Oct 2016 11:22:57 +0200 Subject: php-fedora-autoloader: ensure we use newly installed autoloader in buildroot --- php-fedora-autoloader.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 php-fedora-autoloader.patch (limited to 'php-fedora-autoloader.patch') diff --git a/php-fedora-autoloader.patch b/php-fedora-autoloader.patch new file mode 100644 index 0000000..c2406cd --- /dev/null +++ b/php-fedora-autoloader.patch @@ -0,0 +1,21 @@ +diff --git a/tests/AutoloadTest.php b/tests/AutoloadTest.php +index c8e53e4..f71f150 100644 +--- a/tests/AutoloadTest.php ++++ b/tests/AutoloadTest.php +@@ -89,6 +89,7 @@ class AutoloadTest extends \PHPUnit_Framework_TestCase + **/ + public function testAddClassMapTemplateOrderBis() + { ++ $nb = count(Autoload::getClassMap()); + $this->assertFalse(class_exists('Foo\\Bar')); + require __DIR__.'/fixtures/Foo2/classmap2.php'; + require __DIR__.'/fixtures/Foo/classmap.php'; +@@ -98,7 +99,7 @@ class AutoloadTest extends \PHPUnit_Framework_TestCase + $this->assertEquals('three', \Foo\Bar::order); + + $classmap = Autoload::getClassMap(); +- $this->assertEquals(2, count($classmap)); ++ $this->assertEquals($nb+2, count($classmap)); + $this->assertArrayHasKey(__DIR__.'/fixtures/Foo', $classmap); + $this->assertArrayHasKey(__DIR__.'/fixtures/Foo2', $classmap); + } -- cgit