validator = new ReservedKeywordsValidator(array( new \Doctrine\DBAL\Platforms\Keywords\MySQLKeywords() )); } public function testReservedTableName() { $table = new Table("TABLE"); $this->validator->acceptTable($table); $this->assertEquals( array('Table TABLE keyword violations: MySQL'), $this->validator->getViolations() ); } public function testReservedColumnName() { $table = new Table("TABLE"); $column = $table->addColumn('table', 'string'); $this->validator->acceptColumn($table, $column); $this->assertEquals( array('Table TABLE column table keyword violations: MySQL'), $this->validator->getViolations() ); } }