From 11f9940db287d2b5e90744aa1ffb3634f9b6f35a Mon Sep 17 00:00:00 2001 From: pookey Date: Fri, 29 Jun 2007 21:52:18 +0000 Subject: [PATCH] Refs #376 --- tests/EnumTestCase.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/EnumTestCase.php b/tests/EnumTestCase.php index b1c7e89f2..046cc1fd4 100644 --- a/tests/EnumTestCase.php +++ b/tests/EnumTestCase.php @@ -66,6 +66,18 @@ class Doctrine_Enum_TestCase extends Doctrine_UnitTestCase } } + public function testEnumFetchArray() { + $q = new Doctrine_Query(); + $q->select('e.*') + ->from('EnumTest e') + ->limit(1); + $ret = $q->execute(array(), Doctrine::FETCH_ARRAY); + if (is_numeric($ret[0]['status'])) + { + $this->fail(); + } + } + public function testInAndNotIn() { try {