summaryrefslogtreecommitdiff
path: root/tests/simple_unit/Tickets/Ticket589Test.php
blob: 487181ff6b698ce79da79c550ae4d4ff80b5a45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

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

class Ticket589Test extends UnitTestCase
{
	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->assertEqual(strpos($e->getMessage(),$expect),0);
		}
	}
}