From 1892f57e474d0ee748c1a57b87a37c2ea29ef07b Mon Sep 17 00:00:00 2001 From: Alan Hollis Date: Fri, 30 Aug 2013 12:09:17 +0000 Subject: [PATCH] Fix file layout in unit tests Changes made in previious commit made the output of the file change, which in turn broke the unit tests. This commit updates the fixtures to match the new output. --- .../Autoload/Fixtures/autoload_real_files_by_dependency.php | 3 ++- .../Test/Autoload/Fixtures/autoload_real_functions.php | 3 ++- .../Test/Autoload/Fixtures/autoload_real_target_dir.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/Autoload/Fixtures/autoload_real_files_by_dependency.php b/tests/Composer/Test/Autoload/Fixtures/autoload_real_files_by_dependency.php index 376f8512c..9321b86c8 100644 --- a/tests/Composer/Test/Autoload/Fixtures/autoload_real_files_by_dependency.php +++ b/tests/Composer/Test/Autoload/Fixtures/autoload_real_files_by_dependency.php @@ -38,7 +38,8 @@ class ComposerAutoloaderInitFilesAutoloadOrder $loader->register(true); - foreach (require __DIR__ . '/autoload_files.php' as $file) { + $includeFiles = require __DIR__ . '/autoload_files.php'; + foreach ($includeFiles as $file) { require $file; } diff --git a/tests/Composer/Test/Autoload/Fixtures/autoload_real_functions.php b/tests/Composer/Test/Autoload/Fixtures/autoload_real_functions.php index 3ddbc9ca9..6407c93b7 100644 --- a/tests/Composer/Test/Autoload/Fixtures/autoload_real_functions.php +++ b/tests/Composer/Test/Autoload/Fixtures/autoload_real_functions.php @@ -38,7 +38,8 @@ class ComposerAutoloaderInitFilesAutoload $loader->register(true); - foreach (require __DIR__ . '/autoload_files.php' as $file) { + $includeFiles = require __DIR__ . '/autoload_files.php'; + foreach ($includeFiles as $file) { require $file; } diff --git a/tests/Composer/Test/Autoload/Fixtures/autoload_real_target_dir.php b/tests/Composer/Test/Autoload/Fixtures/autoload_real_target_dir.php index 347454fc5..32e155422 100644 --- a/tests/Composer/Test/Autoload/Fixtures/autoload_real_target_dir.php +++ b/tests/Composer/Test/Autoload/Fixtures/autoload_real_target_dir.php @@ -40,7 +40,8 @@ class ComposerAutoloaderInitTargetDir $loader->register(true); - foreach (require __DIR__ . '/autoload_files.php' as $file) { + $includeFiles = require __DIR__ . '/autoload_files.php'; + foreach ($includeFiles as $file) { require $file; }