File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55use PhpMyAdmin \SqlParser \Components \CreateDefinition ;
66use PhpMyAdmin \SqlParser \Parser ;
77use PhpMyAdmin \SqlParser \Tests \TestCase ;
8- use PhpMyAdmin \SqlParser \Statements \CreateStatement ;
98
109class CreateDefinitionTest extends TestCase
1110{
@@ -104,7 +103,8 @@ public function testBuildWithInvisibleKeyword()
104103 '(`customer_id`) REFERENCES `customer` (`customer_id`) ON UPDATE CASCADE ' .
105104 ') ENGINE=InnoDB" '
106105 );
107- $ this ->assertInstanceOf (CreateStatement::class, $ parser ->statements [0 ]);
106+ // TODO: when not supporting PHP 5.3 anymore, replace this by CreateStatement::class.
107+ $ this ->assertInstanceOf ('PhpMyAdmin \\SqlParser \\Statements \\CreateStatement ' , $ parser ->statements [0 ]);
108108 $ this ->assertEquals (
109109 '`customer_id` smallint(5) UNSIGNED NOT NULL INVISIBLE ' ,
110110 CreateDefinition::build ($ parser ->statements [0 ]->fields [0 ])
You can’t perform that action at this time.
0 commit comments