Contao\CoreBundle\Test\Contao\GdImageTest::testInstantiation PHP Method

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )
    public function testInstantiation()
    {
        $resource = imagecreate(1, 1);
        $image = new GdImage($resource);
        $this->assertInstanceOf('Contao\\GdImage', $image);
        $this->assertSame($resource, $image->getResource());
    }