Every time my PHP code fails, the PHPUnit command line hangs forever I hope this error ( Thrust) and will go ahead on the next test, is not it expected?
This is my code:
class MyTest PHPUnit_Framework_TestCase Extended {public function testSomething () {// async request // Wait for the request to complete $ this - & gt; Emphasis on (& lt; some & gt;); }}
is wrong when phpunit always sits there i tried a different way to no help.
PHPUnit config is actually very simple.
& lt; Phpunit bootstrap = "vendor / autoload.php" & gt; & Lt; Testsuites & gt; & Lt; Testuite name = "name" & gt; & Lt; File & gt; Test / atest.php & lt; / File & gt; & Lt; File & gt; Test / BTest.php & lt; / File & gt; & Lt; File & gt; Test / CTest.php & lt; / File & gt; & Lt; / Testsuite & gt; & Lt; / Testsuites & gt; & Lt; Filter & gt; & Lt; Whitelist & gt; & Lt; Directory & gt; Src & lt; / Directory & gt; & Lt; / Whitelist & gt; & Lt; Blacklist & gt; & Lt; Directory & gt; Src / model & lt; / Directory & gt; & Lt; / Blacklist & gt; & Lt; / Filter & gt; & Lt; / PHPUnit & gt;
The emphasis is not particularly specific. For example, if some string is non-empty, check it out.
$ this-> Assert ("!! = $ $ Model-> getId ()," id is required. ")
No comments:
Post a Comment