Merge pull request #245 from adamgsoc2013/UT_string
add test case for Table Class
This commit is contained in:
commit
7b167c6fe5
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user