function test_url() { $retval = CloudFiles::url('jessica_k.png', 'images'); $this->assertTrue(!empty($retval)); $this->setExpectedException('NoSuchObjectException'); $retval = CloudFiles::url('no_exist.png', 'images'); $this->assertFalse($retval); }
/** * Return the public url of an object in rackspace * @param string name of file (required) * @param string name of container (required) * @return string url of requested object */ public function url($name, $container) { return CloudFiles::url($name, $container); }