Skip to content

Commit e01422f

Browse files
committed
Support back PHP 5.3 on tests
Pull-request: #303 Ref: #292 Signed-off-by: William Desportes <[email protected]>
1 parent f93f5fa commit e01422f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Components/CreateDefinitionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PhpMyAdmin\SqlParser\Components\CreateDefinition;
66
use PhpMyAdmin\SqlParser\Parser;
77
use PhpMyAdmin\SqlParser\Tests\TestCase;
8-
use PhpMyAdmin\SqlParser\Statements\CreateStatement;
98

109
class 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])

0 commit comments

Comments
 (0)