Tests/Unit/Migration/ParametrizedSqlMigrationQueryTest.php 1 location
|
@@ 14-22 (lines=9) @@
|
| 11 |
|
/** @var \PHPUnit_Framework_MockObject_MockObject */ |
| 12 |
|
protected $connection; |
| 13 |
|
|
| 14 |
|
protected function setUp() |
| 15 |
|
{ |
| 16 |
|
$this->connection = $this->getMockBuilder('Doctrine\DBAL\Connection') |
| 17 |
|
->disableOriginalConstructor() |
| 18 |
|
->getMock(); |
| 19 |
|
$this->connection->expects($this->any()) |
| 20 |
|
->method('getDatabasePlatform') |
| 21 |
|
->will($this->returnValue(new MySqlPlatform())); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
public function testConstructor() |
| 25 |
|
{ |
Tests/Unit/Migration/SqlMigrationQueryTest.php 1 location
|
@@ 14-22 (lines=9) @@
|
| 11 |
|
/** @var \PHPUnit_Framework_MockObject_MockObject */ |
| 12 |
|
protected $connection; |
| 13 |
|
|
| 14 |
|
protected function setUp() |
| 15 |
|
{ |
| 16 |
|
$this->connection = $this->getMockBuilder('Doctrine\DBAL\Connection') |
| 17 |
|
->disableOriginalConstructor() |
| 18 |
|
->getMock(); |
| 19 |
|
$this->connection->expects($this->any()) |
| 20 |
|
->method('getDatabasePlatform') |
| 21 |
|
->will($this->returnValue(new MySqlPlatform())); |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
public function testConstructorWithString() |
| 25 |
|
{ |