/** @test */ public function itShouldThrowAnExceptionIfFormatNotSupported() { $adapters = array($this->getSupportedAdapter()); $strategy = $this->getStrategy('zippotte', $adapters); $zippy = new Zippy($this->getContainer()); $zippy->addStrategy($strategy); try { $zippy->getAdapterFor('zippo'); $this->fail('Should have raised an exception'); } catch (FormatNotSupportedException $e) { } }