function test_stream() { $retval = CloudFiles::stream('jessica_k.png', 'images'); $this->assertTrue(!empty($retval)); $this->setExpectedException('NoSuchObjectException'); $retval = CloudFiles::stream('no_exist.png', 'images'); $this->assertFalse($retval); }
/** * Get the stream url of a file * @param string name of file * @param string name of container * @return string stream url */ public function stream($name, $container) { return CloudFiles::stream($name, $container); }