Ejemplo n.º 1
0
 /**
  * Test the filterValue() method.
  */
 public function testFilterValue()
 {
     $value = "Test Value";
     $filteredValue = "XYZ Test";
     $mockHeader = $this->getMock('ListHeader', array('filterValue'));
     $mockHeader->expects($this->once())->method('filterValue')->with($value)->will($this->returnValue($filteredValue));
     $this->cell->setHeader($mockHeader);
     $this->assertEquals($filteredValue, $this->cell->publicFilter($value));
 }