diff --git a/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php b/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php index f0eee0d03..9e073fdd4 100644 --- a/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php +++ b/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php @@ -236,7 +236,8 @@ class SchemaTest extends \PHPUnit_Framework_TestCase $this->assertNotSame($tableB, $schemaNew->getTable('bar')); $this->assertNotSame($tableB->getColumn('id'), $schemaNew->getTable('bar')->getColumn('id')); - $fk = current( $schemaNew->getTable('bar')->getForeignKeys() ); + $fk = $schemaNew->getTable('bar')->getForeignKeys(); + $fk = current($fk); $this->assertSame($schemaNew->getTable('bar'), $this->readAttribute($fk, '_localTable')); } } \ No newline at end of file