Extension\Properties\ProtectedPropertiesTEst::testAssertations PHP Method

testAssertations() public method

public testAssertations ( )
    public function testAssertations()
    {
        $t = new \Test\Properties\ProtectedProperties();
        $this->assertNull($t->getSomeNull());
        $this->assertNull($t->getSomeNullInitial());
        $this->assertFalse($t->getSomeFalse());
        $this->assertTrue($t->getSomeTrue());
        $this->assertSame($t->getSomeInteger(), 10);
        $this->assertSame($t->getSomeDouble(), 10.25);
        $this->assertSame($t->getSomeString(), 'test');
        $t->setSomeVar($rand = rand(1, 1000) * 100);
        $this->assertSame($t->getSomeVar(), $rand);
    }
ProtectedPropertiesTEst