Skip to content

New assertion that no errors were generated

Compare
Choose a tag to compare
@rquadling rquadling released this 02 Aug 15:55
· 1 commit to master since this release

Thanks to Ellis's suggestion, there is now a new assertion to make sure that no errors were generated as part of a unit test.

A simple example:

    public function testSomethingDidNotGenerateAnError()
    {
        // Run something that should not produce an error, warning or notice.
        $this->assertNoErrors();
    }