| 59 | | |
| | 59 | public function testParameterConversionInCount() |
| | 60 | { |
| | 61 | try { |
| | 62 | $query = new Doctrine_Query($this->connection); |
| | 63 | $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'") |
| | 64 | ->count(); |
| | 65 | $this->assertEqual($ret, 1); |
| | 66 | } catch (Exception $e) { |
| | 67 | $this->fail(); |
| | 68 | } |
| | 69 | |
| | 70 | try { |
| | 71 | $query = new Doctrine_Query($this->connection); |
| | 72 | $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'") |
| | 73 | ->count(array('open')); |
| | 74 | $this->assertEqual($ret, 1); |
| | 75 | } catch (Exception $e) { |
| | 76 | $this->fail(); |
| | 77 | } |
| | 78 | |
| | 79 | |
| | 80 | } |