Phalcon\Test\Unit\Db\Adapter\Pdo\PostgresqlTest::testTableExists PHP Method

testTableExists() public method

Tests Postgresql::listTables
Since: 2016-09-29
Author: Serghei Iakovlev ([email protected])
public testTableExists ( )
    public function testTableExists()
    {
        $this->specify('Failed check for existence of a schema.table', function ($table, $schema, $expected) {
            expect($this->connection->tableExists($table, $schema))->equals($expected);
        }, ['examples' => [['personas', null, true], ['personas', TEST_DB_POSTGRESQL_SCHEMA, true], ['noexist', null, false], ['noexist', TEST_DB_POSTGRESQL_SCHEMA, false], ['personas', 'test', false]]]);
    }