public function tearDown()
 {
     $this->client->setSandboxPath('/');
     if ($this->client->dirExists('/phpunit_test')) {
         $this->client->removeDir('/phpunit_test', true);
     }
     parent::tearDown();
 }
Beispiel #2
0
 /**
  * Test sandboxed call with relative path
  */
 public function testRelativeSandboxedCall()
 {
     $this->assertFalse($this->client->exists('sub/value'));
     $this->client->sandboxed('./sub', function (ClientInterface &$c) {
         $c->set('value', 123);
     });
     $this->assertTrue($this->client->exists('sub/value'));
     $this->assertEquals('123', $this->client->get('sub/value'));
 }