public function testIntegerProperty() { $min = 1; $max = 100; $validInteger = 5; $toLarge = 102; $toSmall = 0; $property = new Integer('AProperty', null, $min, $max); $property->setValue($validInteger); $this->assertEquals($validInteger, $property->getValue()); $property->setValue($toLarge); $this->assertEquals($max, $property->getValue()); $property->setValue($toSmall); $this->assertEquals($min, $property->getValue()); }
public function testContructor() { $s = new Integer(5); $this->assertEquals(5, $s->getValue()); }