exists() public method

Example: if ($bucket->exists()) { echo 'Bucket exists!'; }
public exists ( ) : boolean
return boolean
Ejemplo n.º 1
0
 public function testDoesExistFalse()
 {
     $this->connection->getBucket(Argument::any())->willThrow(new NotFoundException(null));
     $bucket = new Bucket($this->connection->reveal(), 'bucket');
     $this->assertFalse($bucket->exists());
 }