Added unit tests for Table, TableTag and TablesTag classes.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8566 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-07-05 19:52:27 +00:00
parent d248d70773
commit 7112d518c8
7 changed files with 178 additions and 4 deletions

View file

@ -0,0 +1,42 @@
<?php
/**
* Test class for Table.
*/
class TableTest extends CubridTest
{
/**
* @var Table
*/
protected $object;
protected function setUp()
{
$this->object = new Table('"xe_member"', '"m"');
}
protected function tearDown()
{
}
public function testToString()
{
$this->assertEquals('"xe_member" as "m"', $this->object->toString());
}
public function testGetName()
{
$this->assertEquals('"xe_member"', $this->object->getName());
}
public function testGetAlias()
{
$this->assertEquals('"m"', $this->object->getAlias());
}
public function testIsJoinTable()
{
$this->assertEquals(false, $this->object->isJoinTable());
}
}
?>