public function testAddItem() { $batchDir = $this->getTmpDir(__METHOD__); $file = new File('.selection', $batchDir); $file->addItem('xxx'); $file->addItem('yyy'); $file->addItem('zzz'); $this->assertEquals(array('xxx', 'yyy', 'zzz'), $file->getItems()); }