From 4213e49d5032db6421d39ea692531c067166ce61 Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 15 Oct 2007 22:22:30 +0000 Subject: [PATCH] --- tests/TableTestCase.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/TableTestCase.php b/tests/TableTestCase.php index 45d1c30d9..8df451371 100644 --- a/tests/TableTestCase.php +++ b/tests/TableTestCase.php @@ -39,7 +39,14 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase parent::prepareTables(); } - public function testFieldConversion() + public function testInitializingNewTableWorksWithoutConnection() + { + $table = new Doctrine_Table('Test', $this->conn); + + $this->assertEqual($table->getComponentName(), 'Test'); + } + + public function testFieldConversion() { $this->dbh->setAttribute(PDO::ATTR_CASE, PDO::CASE_UPPER);