PHPUnit_Framework_Assert::assertRegExp

Asserts that a string matches a given regular expression.