public function testAddEmptyData() { // Use local copy for this test becase we are corrupting it with empty data. $db = new DatabaseConnection_unittest('', '', ''); $this->assertEmpty($db->getTestData(TABLE1)); $db->addTestData(TABLE1, array()); $this->assertCount(1, $db->getTestData(TABLE1)); // Assert that data only is stored in the correct 'table'. $this->assertEmpty($db->getTestData(TABLE2)); }