Exemple #1
0
 public function testFilter()
 {
     $filter = new Regexp('/php/');
     $this->assertEquals(false, $filter->apply('foo bar'));
     $this->assertEquals(true, $filter->apply('foo php bar'));
     // test error message
     $this->assertErrorMessage($filter->getErrorMessage());
 }