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