/** * @expectedException InvalidArgumentException */ public function testCreateFileSame() { $this->storage->createFile('newfile'); $this->storage->createFile('newfile'); }