/** @test */ public function itShouldOpenAnArchive() { $filename = 'file.zippo'; $adapter = $this->getSupportedAdapter(); $adapter->expects($this->once())->method('open')->with($this->equalTo($filename)); $adapters = array($adapter); $strategy = $this->getStrategy('zippo', $adapters); $zippy = new Zippy($this->getContainer()); $zippy->addStrategy($strategy); $zippy->open($filename); }