public function testCanPassIdentifierMinimumAndMaximumValuesToConstructor() { $between = new Between('foo.bar', 1, 300); $this->assertEquals('foo.bar', $between->getIdentifier()); $this->assertEquals(1, $between->getMinValue()); $this->assertEquals(300, $between->getMaxValue()); }
/** * @covers Zend\Db\Sql\Predicate\Between::getExpressionData */ public function testRetrievingWherePartsReturnsSpecificationArrayOfIdentifierAndValuesAndArrayOfTypes() { $this->between->setIdentifier('foo.bar') ->setMinValue(10) ->setMaxValue(19); $expected = array(array( $this->between->getSpecification(), array('foo.bar', 10, 19), array(Between::TYPE_IDENTIFIER, Between::TYPE_VALUE, Between::TYPE_VALUE), )); $this->assertEquals($expected, $this->between->getExpressionData()); }