What is the attribute that should be placed next to the PHP test method in order to ignore the test using PHPUnit ?
I know that for NUnit the attribute is :
If you name your method not with test
at the beginning then the method will not be executed by PHPUnit (see here).
public function willBeIgnored() {
...
}
public function testWillBeExecuted() {
...
}
If you want a method to be executed which does not start with test
you can add the annotation @test
to execute it anyway.
/**
* @test
*/
public function willBeExecuted() {
...
}