cross-solution / phpunit-utils Goto Github PK
View Code? Open in Web Editor NEWUtilities for unit testing with PHPUnit
License: MIT License
Utilities for unit testing with PHPUnit
License: MIT License
PHPUnit 8.0.6 by Sebastian Bergmann and contributors.
............E...................................PHP Fatal error: During class fetch: Uncaught Array and string offset access syntax with curly braces is deprecated
/home/mathias/projects/phpunit-utils/src/TestCase/SetupTargetTrait.php:130
/home/mathias/projects/phpunit-utils/test/TestUtilsTest/TestCase/SetupTargetTraitTest.php:33
in /home/mathias/projects/phpunit-utils/test/TestUtilsTest/TestCase/SetupTargetTraitTest.php on line 33
PHP Stack trace:
PHP 1. {main}() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/phpunit:0
PHP 2. PHPUnit\TextUI\Command::main() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/phpunit:61
PHP 3. PHPUnit\TextUI\Command->run() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/TextUI/Command.php:164
PHP 4. PHPUnit\TextUI\TestRunner->doRun() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/TextUI/Command.php:208
PHP 5. PHPUnit\Framework\TestSuite->run() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:595
PHP 6. PHPUnit\Framework\TestSuite->run() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/Framework/TestSuite.php:761
PHP 7. Cross\TestUtilsTest\TestCase\SetupTargetTraitTest->run() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/Framework/TestSuite.php:761
PHP 8. PHPUnit\Framework\TestResult->run() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/Framework/TestCase.php:795
PHP 9. Cross\TestUtilsTest\TestCase\SetupTargetTraitTest->runBare() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/Framework/TestResult.php:685
PHP 10. Cross\TestUtilsTest\TestCase\SetupTargetTraitTest->runTest() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/Framework/TestCase.php:841
PHP 11. Cross\TestUtilsTest\TestCase\SetupTargetTraitTest->testSetupCallsSetupTarget() /home/mathias/projects/phpunit-utils/vendor/phpunit/phpunit/src/Framework/TestCase.php:1152
Unfortunately, if used with PHP 7.4, PHPUnit will always produce this error, if SetupTargetTrait is used.
Whenever you define an expected value via the 'expect(_*)' or 'setter_value(_*)' specifications which evaluates to true
[1], it is ignored and the 'value(_*)' specification is used instead
[1]: such as a non-empty string, the boolean true, a non-zero number, a non-empty array and so on...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.