Merge pull request #245 from adamgsoc2013/UT_string

add test case for Table Class
This commit is contained in:
Michal Čihař 2013-04-15 02:29:30 -07:00
commit 7b167c6fe5

View File

@ -70,6 +70,26 @@ class PMA_Table_Test extends PHPUnit_Framework_TestCase
$this->assertEquals('table3', $table->getName());
}
/**
* Test Set & Get
*
* @return void
*/
public function testSetAndGet()
{
$table = new PMA_Table('table1', 'pma_test');
$table->set("production","Phpmyadmin");
$table->set("db","mysql");
$this->assertEquals(
"Phpmyadmin",
$table->get("production")
);
$this->assertEquals(
"mysql",
$table->get("db")
);
}
/**
* Test getting columns
*