summaryrefslogtreecommitdiff
path: root/tests/simple_unit/SqlMap/StatementExtendsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_unit/SqlMap/StatementExtendsTest.php')
-rw-r--r--tests/simple_unit/SqlMap/StatementExtendsTest.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/simple_unit/SqlMap/StatementExtendsTest.php b/tests/simple_unit/SqlMap/StatementExtendsTest.php
deleted file mode 100644
index 69beaa58..00000000
--- a/tests/simple_unit/SqlMap/StatementExtendsTest.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-Prado::using('System.Data.SqlMap.TSqlMapConfig');
-class StatementExtendsTest extends UnitTestCase
-{
- protected $sqlmap;
-
- function setup()
- {
- $config = new TSqlMapConfig();
- $config->ConfigFile = dirname(__FILE__).'/maps/tests.xml';
- $this->sqlmap = $config->getClient();
- }
-
- function test_extends1()
- {
- $manager = $this->sqlmap->SqlMapManager;
- $sql = $manager->getMappedStatement('test')->getSqlString();
-
- $this->assertPattern('/img_request/', $sql);
- $this->assertNoPattern('/img_progress/', $sql);
-
- $sql2 = $manager->getMappedStatement('GetAllProgress')->getSqlString();
- $this->assertPattern('/img_request/', $sql2);
- $this->assertPattern('/img_progress/', $sql2);
- }
-}