Skip to content

Commit a4d9aa6

Browse files
committed
Twig 3 support
1 parent 872c47e commit a4d9aa6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Tests/Unit/Migration/MigrationExecutorWithNameGeneratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testExecuteUp()
4444
->method('executeQuery')
4545
->with(
4646
'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
47-
. 'COLLATE utf8_unicode_ci ENGINE = InnoDB'
47+
. 'COLLATE `utf8_unicode_ci` ENGINE = InnoDB'
4848
);
4949
$this->connection->expects($this->at(5))
5050
->method('executeQuery')
@@ -58,7 +58,7 @@ public function testExecuteUp()
5858
'CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)',
5959
'> ' . get_class($migration11),
6060
'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
61-
. 'COLLATE utf8_unicode_ci ENGINE = InnoDB',
61+
. 'COLLATE `utf8_unicode_ci` ENGINE = InnoDB',
6262
'ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL',
6363
],
6464
$messages
@@ -85,7 +85,7 @@ public function testExecuteUpWithDryRun()
8585
'CREATE TABLE TEST (id INT AUTO_INCREMENT NOT NULL)',
8686
'> ' . get_class($migration11),
8787
'CREATE TABLE test1table (id INT NOT NULL) DEFAULT CHARACTER SET utf8 '
88-
. 'COLLATE utf8_unicode_ci ENGINE = InnoDB',
88+
. 'COLLATE `utf8_unicode_ci` ENGINE = InnoDB',
8989
'ALTER TABLE TEST ADD COLUMN test_column INT NOT NULL',
9090
],
9191
$messages

src/Tests/Unit/Tools/SchemaDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SchemaDumperTest extends \PHPUnit_Framework_TestCase
2424

2525
protected function setUp()
2626
{
27-
$this->twig = $this->getMockBuilder('\Twig_Environment')->disableOriginalConstructor()->getMock();
27+
$this->twig = $this->getMockBuilder('Twig\Environment')->disableOriginalConstructor()->getMock();
2828
$this->schema = new Schema();
2929
$this->schemaDumper = new SchemaDumper($this->twig, 'Migrations/Schema');
3030

0 commit comments

Comments
 (0)