#212 WebTestCase should not be executed as test case

open
Marcus Baker
Web tester (52)
5
2012-01-13
2012-01-13
Fred
No

When I include autorun.php and web_tester.php in my test suite, WebTestCase gets executed as part of the autorun. Even though it doesn't have any test functions, it adds one extra test case to the results; e.g., if I don't create any tests, the results say "0/1 test cases complete." I solved it with SimpleTest::ignore('WebTestCase'), but I think it should be declared abstract or ignored by default.

This is in version 1.1alpha3.

Discussion

  • I agree. I have gone even further -- my local copy has

    abstract class WebTestCase extends UnitTestCase

    so that I get access to all the assertion predicates, not just the web ones

     
  • Tchalvak
    Tchalvak
    2012-06-01

    Good good, so that's why the count is wrong, I couldn't be sure.