/** * @param $existingValue * @param $operator * @param $valueForValidate * @param $expectedResult * @param $inputType * * @dataProvider validateAttributeArrayInputTypeDataProvider */ public function testValidateArrayOperatorType($existingValue, $operator, $valueForValidate, $expectedResult, $inputType) { $this->_condition->setOperator($operator); $this->_condition->setData('value_parsed', $existingValue); $this->_condition->getDefaultOperatorInputByType(); $this->_condition->expects($this->any())->method('getInputType')->will($this->returnValue($inputType)); $this->assertEquals($expectedResult, $this->_condition->validateAttribute($valueForValidate), "Failed asserting that " . var_export($existingValue, true) . $operator . var_export($valueForValidate, true)); }