Esempio n. 1
0
 /**
  * explodeKey
  *
  * @param string $key
  *
  * @return array
  */
 public static function explodeKey($key)
 {
     return S3Client::explodeKey($key);
 }
Esempio n. 2
0
 public function testExplodesKeys()
 {
     $this->assertEquals(array('foo', 'baz ', 'bar!'), S3Client::explodeKey('foo/baz /bar!'));
     $this->assertEquals(array('foo', 'baz ', 'bar!'), S3Client::explodeKey('/foo/baz /bar!'));
     $this->assertEquals(array(''), S3Client::explodeKey(''));
     $this->assertEquals(array(''), S3Client::explodeKey(null));
 }