Changeset 3642
- Timestamp:
- 01/26/08 21:43:56 (18 months ago)
- Files:
-
- 3 modified
-
branches/0.10/tests/DataType/EnumTestCase.php (modified) (1 diff)
-
branches/0.9/tests/DataType/EnumTestCase.php (modified) (1 diff)
-
trunk/tests/DataType/EnumTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/tests/DataType/EnumTestCase.php
r3209 r3642 57 57 } 58 58 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 } 60 81 61 82 public function testInAndNotIn() -
branches/0.9/tests/DataType/EnumTestCase.php
r2359 r3642 67 67 } 68 68 69 69 public function testParameterConversionInCount() 70 { 71 try { 72 $query = new Doctrine_Query($this->connection); 73 $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'") 74 ->count(); 75 $this->assertEqual($ret, 1); 76 } catch (Exception $e) { 77 $this->fail(); 78 } 79 80 try { 81 $query = new Doctrine_Query($this->connection); 82 $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'") 83 ->count(array('open')); 84 $this->assertEqual($ret, 1); 85 } catch (Exception $e) { 86 $this->fail(); 87 } 88 89 90 } 70 91 71 92 public function testInAndNotIn() -
trunk/tests/DataType/EnumTestCase.php
r3460 r3642 57 57 } 58 58 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 } 60 81 61 82 public function testInAndNotIn()