Disabling Tests
Sometimes you might need to disable a test for a variety of reasons. With AsyncUnit you can disable your tests, TestCases, and TestSuites with the Disabled Attribute!
Disabling a single test
<?php
use Cspray\Labrador\AsyncUnit\TestCase;
use Cspray\Labrador\AsyncUnit\Attribute\Test;
use Cspray\Labrador\AsyncUnit\Attribute\Disabled;
class MyDisabledTest extends TestCase {
#[Test]
#[Disabled]
public function checkSomething() {
// none of this matters because this is never executed
}
}Disabling a TestCase
Disabling a TestSuite
Last updated
Was this helpful?