| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/dbal/src/criteria/lmbSQLCriteria.class.php'); 10 lmb_require('limb/dbal/src/criteria/lmbSQLCriteria.class.php'); 11 12 class lmbSQLCriteriaTest extends UnitTestCase 13 { 14 function testObjectifyString() 15 { 16 $criteria = lmbSQLCriteria :: objectify("id = 1"); 17 $this->assertEqual($criteria->toStatementString(), "id = 1"); 18 } 19 20 function testObjectifyObject() 21 { 22 $criteria = lmbSQLCriteria :: objectify(new lmbSQLRawCriteria("id = 1")); 23 $this->assertEqual($criteria->toStatementString(), "id = 1"); 24 } 25 26 function testObjectifyNull() 27 { 28 $criteria = lmbSQLCriteria :: objectify(null); 29 $this->assertEqual($criteria->toStatementString(), "1 = 1"); 30 } 31 32 function testPassRawCriteriaToConstructor() 33 { 34 $criteria = new lmbSQLCriteria('2 = 2'); 35 $this->assertEqual($criteria->toStatementString(), '2 = 2'); 36 } 37 } 38 39 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Sep 6 04:46:52 2008 | Cross-referenced by PHPXref 0.7 |