Exemplo n.º 1
0
 public function testSetFilters()
 {
     $stub = $this->getStub();
     $filter = new MatchAll();
     $stub->setFilters(array($filter));
     $expected = array($filter->toArray());
     $this->assertEquals($expected, $stub->getFilters());
 }
Exemplo n.º 2
0
 /**
  * @group unit
  */
 public function testToArray()
 {
     $filter = new MatchAll();
     $expectedArray = array('match_all' => new \stdClass());
     $this->assertEquals($expectedArray, $filter->toArray());
 }