exists() публичный Метод

Example: if ($bucket->exists()) { echo 'Bucket exists!'; }
public exists ( ) : boolean
Результат boolean
Пример #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());
 }