Commit db9019eb authored by Jeroen De Dauw's avatar Jeroen De Dauw

Use spaces

parent 4084f97a
...@@ -18,8 +18,8 @@ class DropSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase ...@@ -18,8 +18,8 @@ class DropSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase
$keyConstraintTwo = $this->getStubKeyConstraint('second'); $keyConstraintTwo = $this->getStubKeyConstraint('second');
$platform = $this->getMockBuilder('Doctrine\DBAL\Platforms\AbstractPlatform') $platform = $this->getMockBuilder('Doctrine\DBAL\Platforms\AbstractPlatform')
->setMethods(array('getDropForeignKeySQL')) ->setMethods(array('getDropForeignKeySQL'))
->getMockForAbstractClass(); ->getMockForAbstractClass();
$collector = new DropSchemaSqlCollector($platform); $collector = new DropSchemaSqlCollector($platform);
...@@ -40,10 +40,10 @@ class DropSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase ...@@ -40,10 +40,10 @@ class DropSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase
$collector->getQueries(); $collector->getQueries();
} }
private function getTableMock() private function getTableMock()
{ {
return $this->getMockWithoutArguments('Doctrine\DBAL\Schema\Table'); return $this->getMockWithoutArguments('Doctrine\DBAL\Schema\Table');
} }
private function getMockWithoutArguments($className) private function getMockWithoutArguments($className)
{ {
...@@ -54,28 +54,28 @@ class DropSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase ...@@ -54,28 +54,28 @@ class DropSchemaSqlCollectorTest extends \PHPUnit_Framework_TestCase
{ {
$constraint = $this->getMockWithoutArguments('Doctrine\DBAL\Schema\ForeignKeyConstraint'); $constraint = $this->getMockWithoutArguments('Doctrine\DBAL\Schema\ForeignKeyConstraint');
$constraint->expects($this->any()) $constraint->expects($this->any())
->method('getName') ->method('getName')
->will($this->returnValue($name)); ->will($this->returnValue($name));
$constraint->expects($this->any()) $constraint->expects($this->any())
->method('getForeignColumns') ->method('getForeignColumns')
->will($this->returnValue(array())); ->will($this->returnValue(array()));
$constraint->expects($this->any()) $constraint->expects($this->any())
->method('getColumns') ->method('getColumns')
->will($this->returnValue(array())); ->will($this->returnValue(array()));
return $constraint; return $constraint;
} }
public function testGivenForeignKeyWithZeroLength_acceptForeignKeyThrowsException() public function testGivenForeignKeyWithZeroLength_acceptForeignKeyThrowsException()
{ {
$collector = new DropSchemaSqlCollector( $collector = new DropSchemaSqlCollector(
$this->getMockForAbstractClass('Doctrine\DBAL\Platforms\AbstractPlatform') $this->getMockForAbstractClass('Doctrine\DBAL\Platforms\AbstractPlatform')
); );
$this->setExpectedException( 'Doctrine\DBAL\Schema\SchemaException' ); $this->setExpectedException( 'Doctrine\DBAL\Schema\SchemaException' );
$collector->acceptForeignKey($this->getTableMock(), $this->getStubKeyConstraint('')); $collector->acceptForeignKey($this->getTableMock(), $this->getStubKeyConstraint(''));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment