/** * Test filter * */ public function testFilter() { $value = 'test'; $this->assertSame($value, $this->_filter->filter($value)); }
/** * Test int to float * */ public function testIntToFloat() { $int = (int) 5; $this->assertSame((double) 5, $this->_filter->filter($int)); }
/** * Test filter * */ public function testFilter() { $value = "foo\nbar\nbat\t"; $this->assertSame(nl2br($value), $this->_filter->filter($value)); }