SimpleTest PHP not completing a testor showing a failure -


For some reason, even I have another similar test set for other classes in the same environment Do up, SimpleTest is not running my test function, but it's not saying that the tests are incompatible. The message I receive (in the green bar of success):

FormControllerTest.php
0/1 Test Case Complete: 0 Pass, 0 Fails and 0 Exceptions

So it is found that there is a test case, but it has not run it, but it is not throwing an error.

I have the simplest possible testing case:

  need_once (Dynom (__ file__). '/ Simpletest /autorun.php'); Need_once (dirname (__ file__). '/../FormController.php'); Square spreads to FormControllerTest UnitTestCase {function shouldFail () {$ this- & gt; AssertFalse (true); }}   

I do not understand why this is not working. Does anyone have any suggestions on why this is not going to be my test?

Many thanks to me

I came to know that my trial was not working. According to

:

When the case of the test is brought by the Autoorunner, then it will search for it, any method starts with the name "Test".

So, as soon as I changed the name of the above work to testShouldFail () and found that the test failed correctly.

Hope that helps someone.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -