public function testMatchesRegexWillThrowException() { $this->setExpectedException(Exception::class); $value = 'A'; $regex = '/[a-z]/'; Assert::matchesRegex($value, $regex); }