public function Test_of_getHigherItem() { $TodoItems = new TodoItem(); $this->assertFalse($TodoItems->list->getHigherItem()); $TodoItem = $TodoItems->find(10); $HigherItem = $TodoItem->list->getHigherItem(); $this->assertEqual($HigherItem->task, 'Task number 9'); $TodoItem = $TodoItems->find(1); $this->assertFalse($TodoItem->list->getHigherItem()); $TodoItems = new TodoItem(); $TodoItems->transactionStart(); $this->assertTrue($TodoItems->deleteAll()); $this->assertFalse($TodoItems->list->getHigherItem()); $TodoItems->transactionFail(); $TodoItems->transactionComplete(); }