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