/** * @expectedException Respect\Validation\Exceptions\RegexException */ public function testRegexNot() { $v = new Regex('/^w+$/'); $this->assertFalse($v->validate('w poiur')); $this->assertFalse($v->assert('w poiur')); }