PopTest\Color\HsbTest::testConstructor PHP Метод

testConstructor() публичный Метод

public testConstructor ( )
    public function testConstructor()
    {
        $h = new Hsb(180, 50, 50);
        $this->assertInstanceOf('Pop\\Color\\Space\\Hsb', $h);
        $this->assertEquals(180, $h->getHue());
        $this->assertEquals(50, $h->getSaturation());
        $this->assertEquals(50, $h->getBrightness());
    }