/** * @covers Zend\Db\Sql\Sql::__construct */ public function test__construct() { $sql = new Sql($this->mockAdapter); $this->assertFalse($sql->hasTable()); $sql->setTable('foo'); $this->assertSame('foo', $sql->getTable()); $this->setExpectedException('Zend\\Db\\Sql\\Exception\\InvalidArgumentException', 'Table must be a string or instance of TableIdentifier.'); $sql->setTable(null); }