/** * @depends testInterface * @return null */ public function testExtractColumnNameIncompleteIdentifier() { $col = '"col integer not null'; $expected = 'parse error: no end identifier for -(")'; $this->assertFalse($this->parser->extractColumnName($col)); $this->assertTrue($this->parser->isError()); $this->assertEquals($expected, $this->parser->getError()); $col = "'col integer not null"; $expected = "parse error: no end identifier for -(')"; $this->assertFalse($this->parser->extractColumnName($col)); $this->assertTrue($this->parser->isError()); $this->assertEquals($expected, $this->parser->getError()); $col = "`col integer not null"; $expected = "parse error: no end identifier for -(`)"; $this->assertFalse($this->parser->extractColumnName($col)); $this->assertTrue($this->parser->isError()); $this->assertEquals($expected, $this->parser->getError()); }