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 :
The easiest way would be to just change the name of the test method and avoid names starting with "test". That way, unless you tell PHPUnit to execute it using @test
, it won't execute that test.
Also, you could tell PHPUnit to skip a specific test:
markTestSkipped( 'PHPUnit will skip this test method' );
}
public function testThatWillBeExecuted()
{
// Test something
}
}