/** * explodeKey * * @param string $key * * @return array */ public static function explodeKey($key) { return S3Client::explodeKey($key); }
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)); }