コード例 #1
0
 /**
  * @covers Robo47_Log_Filter_ValidateProxy::accept
  * @dataProvider acceptValuesProvider
  */
 public function testAccept($validator, $key, $not, $event, $expected, $expectedLastValue)
 {
     $this->_filter->setValidator($validator);
     $this->_filter->setKey($key);
     $this->_filter->setNot($not);
     $this->assertEquals($expected, $this->_filter->accept($event), 'Accept-Return ist noch valid');
     $this->assertEquals($expectedLastValue, $validator->lastValue, 'lastValue is not expected');
 }