0

I am running phpunit 3.2.8 on a system (without the possibility to update the version of this code), and want to skip certain php unittests. How can I do this?

In python, you simply can add a decorator before the test-function to make it skip. How can I do it for php with the specified version of phpunit?

1 Answer 1

2

You could mark it skipped like so:

class SomeTestCase extends PHPUnit_Framework_TestCase
{
    public function testSomething()
    {
        $this->markTestSkipped();
        // rest of test here ...
    }
}

Not the answer you're looking for? Browse other questions tagged or ask your own question.