diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index d777fab51..650c4c962 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -84,7 +84,7 @@ class AutoloadGeneratorTest extends TestCase * Note: must be public for compatibility with PHP 5.3 runtimes where * closures cannot access private members of the classes they are created * in. - * @var array + * @var array */ public $configValueMap; @@ -1706,6 +1706,12 @@ EOF; } /** + * @param array $requires + * @param string|null $expectedFixture + * @param array $provides + * @param array $replaces + * @param bool $ignorePlatformReqs + * * @dataProvider platformCheckProvider */ public function testGeneratesPlatformCheck(array $requires, $expectedFixture, array $provides = array(), array $replaces = array(), $ignorePlatformReqs = false) @@ -1828,6 +1834,13 @@ EOF; ); } + /** + * @param string $name + * @param string $dir + * @param string $type + * + * @return void + */ private function assertAutoloadFiles($name, $dir, $type = 'namespaces') { $a = __DIR__.'/Fixtures/autoload_'.$name.'.php'; @@ -1835,6 +1848,15 @@ EOF; $this->assertFileContentEquals($a, $b); } + /** + * @param string $expected + * @param string $actual + * @param string $message + * @param bool $canonicalize + * @param bool $ignoreCase + * + * @return void + */ public static function assertFileContentEquals($expected, $actual, $message = '', $canonicalize = false, $ignoreCase = false) { self::assertEqualsNormalized( @@ -1848,6 +1870,17 @@ EOF; ); } + /** + * @param string $expected + * @param string $actual + * @param string $message + * @param int $delta + * @param int $maxDepth + * @param bool $canonicalize + * @param bool $ignoreCase + * + * @return void + */ public static function assertEqualsNormalized($expected, $actual, $message = '', $delta = 0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false) { parent::assertEquals(str_replace("\r", '', $expected), str_replace("\r", '', $actual), $message, $delta, $maxDepth, $canonicalize, $ignoreCase); diff --git a/tests/Composer/Test/Autoload/ClassLoaderTest.php b/tests/Composer/Test/Autoload/ClassLoaderTest.php index bb597890d..f20c764d2 100644 --- a/tests/Composer/Test/Autoload/ClassLoaderTest.php +++ b/tests/Composer/Test/Autoload/ClassLoaderTest.php @@ -40,7 +40,7 @@ class ClassLoaderTest extends TestCase /** * Provides arguments for ->testLoadClass(). * - * @return array Array of parameter sets to test with. + * @return array> Array of parameter sets to test with. */ public function getLoadClassTests() { diff --git a/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php b/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php index 13641ad71..6b44dc5a8 100644 --- a/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php +++ b/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php @@ -33,6 +33,9 @@ class ClassMapGeneratorTest extends TestCase $this->assertEqualsNormalized($expected, ClassMapGenerator::createMap($directory)); } + /** + * @return array>> + */ public function getTestCreateMapTests() { if (PHP_VERSION_ID == 50303) { @@ -268,6 +271,12 @@ class ClassMapGeneratorTest extends TestCase $this->assertEqualsNormalized($expected, $result); } + /** + * @param array $expected + * @param array $actual + * @param string $message + * @return void + */ protected function assertEqualsNormalized($expected, $actual, $message = '') { foreach ($expected as $ns => $path) { @@ -279,6 +288,7 @@ class ClassMapGeneratorTest extends TestCase $this->assertEquals($expected, $actual, $message); } + /** @return void */ private function checkIfFinderIsAvailable() { if (!class_exists('Symfony\\Component\\Finder\\Finder')) {