/** * @covers CIUnit_Framework_Assert::assertStringMatchesRegex() */ public function testAssertStringNotMatchesRegex() { CIUnit_Framework_Assert::assertStringNotMatchesRegex('/^prez/', 'presentation'); try { CIUnit_Framework_Assert::assertStringNotMatchesRegex('/^pr/', 'presentation'); } catch (CIUnit_Framework_Exception_AssertionFailed $e) { return; } $this->fail(); }