You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
498 B

  1. <?php
  2. /*
  3. * @copyright NetMonsters <team@netmonsters.ru>
  4. * @link http://netmonsters.ru
  5. * @package Majestic
  6. * @subpackage UnitTests
  7. * @since 2011-11-3
  8. *
  9. * Unit tests for DbExpr class
  10. */
  11. require_once dirname(__FILE__) . '/../../model/DbExpr.php';
  12. class DbExprTest extends PHPUnit_Framework_TestCase
  13. {
  14. public function testExpr()
  15. {
  16. $expr = new DbExpr('THIS IS SQL EXPRESSION');
  17. $str = (string) $expr;
  18. $this->assertSame('THIS IS SQL EXPRESSION', $str);
  19. }
  20. }