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

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

public testConstructor ( )
    public function testConstructor()
    {
        $h = new Hex('#ee1c2d');
        $this->assertInstanceOf('Pop\\Color\\Space\\Hex', $h);
        $this->assertEquals('ee', $h->getRed());
        $this->assertEquals('1c', $h->getGreen());
        $this->assertEquals('2d', $h->getBlue());
        $h = new Hex('#def');
        $this->assertInstanceOf('Pop\\Color\\Space\\Hex', $h);
        $this->assertEquals('dd', $h->getRed());
        $this->assertEquals('ee', $h->getGreen());
        $this->assertEquals('ff', $h->getBlue());
    }