/** * @expectedException InvalidArgumentException */ public function testCreateDirException() { $this->storage->createDir('newdir'); $this->storage->createDir('newdir'); }