Jsor\Doctrine\PostGIS\Types\AbstractTypeTestCase::testGetSQLDeclaration PHP Method

testGetSQLDeclaration() public method

public testGetSQLDeclaration ( $type )
    public function testGetSQLDeclaration($type)
    {
        $defaultSrid = $this->type instanceof GeographyType ? 4326 : 0;
        $this->assertEquals(sprintf('%s(%s, %d)', $this->getTypeName(), $type, $defaultSrid), $this->type->getSqlDeclaration(array('name' => 'test', 'geometry_type' => $type), $this->getPlatformMock()));
        $this->assertEquals(sprintf('%s(%s, %d)', $this->getTypeName(), $type, 1234), $this->type->getSqlDeclaration(array('name' => 'test', 'geometry_type' => $type, 'srid' => 1234), $this->getPlatformMock()));
    }