Pop\Db\Sql::hasTable PHP Method

hasTable() public method

Determine if the Sql object has a table set
public hasTable ( ) : boolean
return boolean
    public function hasTable()
    {
        return $this->table != null;
    }

Usage Example

Exemplo n.º 1
0
 public function testHasTable()
 {
     $s = new Sql(Db::factory('Sqlite', array('database' => __DIR__ . '/../tmp/test.sqlite')), 'users');
     $this->assertTrue($s->hasTable());
 }