Пример #1
0
 /**
  * @dataProvider isActiveData
  *
  * @param $expected
  * @param $value
  */
 public function testIsActive($expected, $value)
 {
     $filter = new FilterTest_Filter();
     $filter->setValue($value);
     $this->assertEquals($expected, $filter->isActive());
 }
Пример #2
0
 /**
  * @expectedException RunTimeException
  */
 public function testExceptionOnNonDefinedFieldName()
 {
     $filter = new FilterTest_Filter();
     $filter->getFieldName();
 }