Last active
August 8, 2017 14:26
-
-
Save AndreasArne/d2a98bc4dcb1c7770b2cb09f5c60cca7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/dbwebb-se/oophp/tree/master/example/phpunit | |
Jag använder php 7.1.8 och phpunit 6.3. | |
När jag kör "phpunit --configuration .phpunit.xml" får jag errors: | |
Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/test/Guess/GuessTest.php on line 4 | |
Call Stack: | |
0.0004 492640 1. {main}() /usr/local/bin/phpunit:0 | |
0.0432 8174336 2. PHPUnit\TextUI\Command::main() /usr/local/bin/phpunit:557 | |
0.0432 8174448 3. PHPUnit\TextUI\Command->run() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:141 | |
0.0432 8174448 4. PHPUnit\TextUI\Command->handleArguments() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:152 | |
0.0440 8239960 5. PHPUnit\Util\Configuration->getTestSuiteConfiguration() phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php:786 | |
0.0440 8240544 6. PHPUnit\Util\Configuration->getTestSuite() phar:///usr/local/bin/phpunit/phpunit/Util/Configuration.php:896 | |
0.0444 8241688 7. PHPUnit\Framework\TestSuite->addTestFiles() phar:///usr/local/bin/phpunit/phpunit/Util/Configuration.php:1000 | |
0.0444 8241688 8. PHPUnit\Framework\TestSuite->addTestFile() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:392 | |
0.0445 8278608 9. PHPUnit\Util\Fileloader::checkAndLoad() phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php:320 | |
0.0445 8278784 10. PHPUnit\Util\Fileloader::load() phar:///usr/local/bin/phpunit/phpunit/Util/Fileloader.php:48 | |
0.0445 8288072 11. include_once('/var/www/html/test/Guess/GuessTest.php') phar:///usr/local/bin/phpunit/phpunit/Util/Fileloader.php:64 | |
Hittade lösning https://stackoverflow.com/a/42561590. | |
Ändrade https://github.com/dbwebb-se/oophp/blob/master/example/phpunit/test/Guess/GuessTest.php#L8 till "class GuessTest extends \PHPUnit\Framework\TestCase" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment