/** * @dataProvider dataProviderSuccess */ public function testConstructor($field, $value) { $expr = new LikeExpr($field, $value); $this->assertTrue(is_string($expr->getName())); $this->assertEquals('like', $expr->getExpression()); $this->assertEquals('like', $expr->getOperator()); $this->assertEquals($field, $expr->getField()); $this->assertEquals($value, $expr->getValue()); }
/** * @inheritdoc */ public function __construct($field, $value) { parent::__construct($field, $value); $this->expression = 'notLike'; $this->operator = 'notlike'; }