Model classes DbExpr, DbStatement, DbDriver and Db tested
This commit is contained in:
24
tests/model/DbExprTest.php
Normal file
24
tests/model/DbExprTest.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright NetMonsters <team@netmonsters.ru>
|
||||
* @link http://netmonsters.ru
|
||||
* @package Majestic
|
||||
* @subpackage UnitTests
|
||||
* @since 2011-11-3
|
||||
*
|
||||
* Unit tests for DbExpr class
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/../../model/DbExpr.php';
|
||||
|
||||
class DbExprTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testExpr()
|
||||
{
|
||||
$expr = new DbExpr('THIS IS SQL EXPRESSION');
|
||||
$str = (string) $expr;
|
||||
$this->assertEquals('THIS IS SQL EXPRESSION', $str);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user