1 | <?php |
||
14 | class QuantityQueryTest extends \PHPUnit_Framework_TestCase { |
||
15 | |||
16 | public function testGetPropertyId() { |
||
20 | |||
21 | public function testGetLowerValue() { |
||
22 | $query = new QuantityQuery( new PropertyId( 'P42' ), new DecimalValue( '+41' ), new DecimalValue( '+43' ) ); |
||
23 | $this->assertEquals( |
||
24 | new DecimalValue( '+41' ), |
||
25 | $query->getLowerValue() |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | public function testGetUpperValue() { |
||
30 | $query = new QuantityQuery( new PropertyId( 'P42' ), new DecimalValue( '+41' ), new DecimalValue( '+43' ) ); |
||
31 | $this->assertEquals( |
||
32 | new DecimalValue( '+43' ), |
||
33 | $query->getUpperValue() |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | public function testGetType() { |
||
41 | } |
||
42 |