public function testComputeKeyThrowsAnExceptionWhenTheSpecifiedPathIsNotValid() { $adapter = new AmazonS3($this->service, 'foobucket'); $this->setExpectedException('InvalidArgumentException'); $adapter->computeKey('barbucket/foobar'); }