public function testRangeOperatorBehavior() { $operator = new Range($this->testField, $this->testRangeFrom, $this->testRangeTo); $expectedValue = array(Range::KEY_FROM => new GreaterThanEqual($this->testField, $this->testRangeFrom), Range::KEY_TO => new LessThanEqual($this->testField, $this->testRangeTo)); $this->assertEquals($expectedValue, $operator->getValue(), 'Wrong value in prepared range'); $this->makeDefaultAssertions($operator, 'range'); }