Model classes DbExpr, DbStatement, DbDriver and Db tested

This commit is contained in:
Anton Grebnev
2011-11-03 16:52:33 +04:00
parent 8d5885b229
commit 183b64fd37
4 changed files with 374 additions and 4 deletions

View 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);
}
}