public function testDoesExistFalse() { $this->connection->getBucket(Argument::any())->willThrow(new NotFoundException(null)); $bucket = new Bucket($this->connection->reveal(), 'bucket'); $this->assertFalse($bucket->exists()); }