_em->getConnection()->getDatabasePlatform()->getName() != "postgresql") { $this->markTestSkipped("PostgreSQL only test."); } $sql = $this->_schemaTool->getCreateSchemaSQL(array( $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC1360DoubleQuote') )); $this->assertEquals(array( 'CREATE SCHEMA user', 'CREATE TABLE "user"."user" (id INT NOT NULL, PRIMARY KEY(id))', 'CREATE SEQUENCE "user"."user_id_seq" INCREMENT BY 1 MINVALUE 1 START 1', ), $sql); } } /** * @Entity @Table(name="`user`.`user`") */ class DDC1360DoubleQuote { /** @Id @GeneratedValue @Column(type="integer") */ public $id; }