Пример #1
0
 public function testFactoryMethodWithHeaders()
 {
     $container = Container::create('foo', ['X-Container-Meta-Read' => '.r:*', 'X-Container-Object-Count' => '10', 'X-Container-Bytes-Used' => '1024']);
     $this->assertTrue($container->isPublic());
     $this->assertCount(10, $container);
     $this->assertSame(10, $container->getObjectCount());
     $this->assertSame(1024, $container->getBytesUsed());
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function getContainer($name)
 {
     $response = $this->head($name);
     return $this->assertResponse($response, [204 => Container::create($name, $response->getHeaders()), 404 => null]);
 }