summaryrefslogtreecommitdiff
path: root/tests/unit/Data/SqlMap/Ticket589Test.php
blob: c85a4aea5fc5c50b3118fe11b2669fb268d7daea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

Prado::using('System.Data.SqlMap.TSqlMapManager');

/**
 * @package System.Data.SqlMap
 */
class Ticket589Test extends PHPUnit_Framework_TestCase
{
	function test()
	{
		$manager = new TSqlMapManager();
		try
		{
			$manager->configureXml(dirname(__FILE__).'/sqlmap.xml');
			$this->fail();
		}catch(TSqlMapConfigurationException $e)
		{
			$expect = 'Invalid property \'parametrClass\' for class \'TSqlMapStatement\' for tag \'<statement id="findNotVisitedWatchedTopicList"';
			$this->assertEquals(strpos($e->getMessage(),$expect),0);
		}
	}
}