sebastianbergmann / phpunit

The PHP Unit Testing framework.
https://phpunit.de/
BSD 3-Clause "New" or "Revised" License
19.7k stars 2.2k forks source link

PHP Notice: Uninitialized string offset: 0 #1311

Closed WitteStier closed 10 years ago

WitteStier commented 10 years ago

Uninitialized string issue in version 4.1.3. Installed with composer global.

PHP Notice:  Uninitialized string offset: 0 in /Users/wittestier/.composer/vendor/phpunit/phpunit/src/Util/Configuration.php on line 1053
PHP Stack trace:
PHP   1. {main}() /Users/wittestier/.composer/vendor/phpunit/phpunit/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /Users/wittestier/.composer/vendor/phpunit/phpunit/phpunit:55
PHP   3. PHPUnit_TextUI_Command->run() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:132
PHP   4. PHPUnit_TextUI_Command->handleArguments() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:141
PHP   5. PHPUnit_Util_Configuration->getTestSuiteConfiguration() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:683
PHP   6. PHPUnit_Util_Configuration->getTestSuite() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/Util/Configuration.php:825
PHP   7. PHPUnit_Util_Configuration->toAbsolutePath() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/Util/Configuration.php:861

Notice: Uninitialized string offset: 0 in /Users/wittestier/.composer/vendor/phpunit/phpunit/src/Util/Configuration.php on line 1053

Call Stack:
    0.0002     226992   1. {main}() /Users/wittestier/.composer/vendor/phpunit/phpunit/phpunit:0
    0.0044     545752   2. PHPUnit_TextUI_Command::main() /Users/wittestier/.composer/vendor/phpunit/phpunit/phpunit:55
    0.0044     545968   3. PHPUnit_TextUI_Command->run() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:132
    0.0044     546400   4. PHPUnit_TextUI_Command->handleArguments() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:141
    0.1001    3639064   5. PHPUnit_Util_Configuration->getTestSuiteConfiguration() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:683
    0.1001    3640000   6. PHPUnit_Util_Configuration->getTestSuite() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/Util/Configuration.php:825
    0.1043    3777976   7. PHPUnit_Util_Configuration->toAbsolutePath() /Users/wittestier/.composer/vendor/phpunit/phpunit/src/Util/Configuration.php:861
whatthejeff commented 10 years ago

Would you mind providing your xml configuration file?

WitteStier commented 10 years ago

Sure, see https://github.com/WitteStier/BMK_server/blob/dev-master/module/Application/test/phpunit.xml