From 50e9d8c54700c5cc858910743ca01a5b02ee806f Mon Sep 17 00:00:00 2001 From: jwage Date: Fri, 26 Feb 2010 02:00:41 +0000 Subject: [PATCH] [2.0] Fixing php error --- tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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