public function testFilter() { $filter = new Ip(); $this->assertEquals('80.80.80.80', $filter->apply('80.80.80.80')); $this->assertEquals(false, $filter->apply('foo')); // test error message $this->assertErrorMessage($filter->getErrorMessage()); }