function setUp() { ArrayFileStream::set_filesystem(array('pathto' => array('config-1.php' => '<? $CONF = 17; ', 'config-2.php' => '<? $CONF = 17 + $offset; '))); if (!stream_wrapper_register("var", "ArrayFileStream")) { new Exception("Failed to register protocol"); } }
function setUpFS() { ArrayFileStream::set_filesystem(array('dynamic' => array('course' => array($this->avatar_id . '_normal.png' => '', $this->avatar_id . '_medium.png' => '', $this->avatar_id . '_small.png' => '')))); if (!stream_wrapper_register("var", "ArrayFileStream")) { new Exception("Failed to register protocol"); } }
function setUpFS() { ArrayFileStream::set_filesystem(array('app' => array('controllers' => array('foo.php' => '<?')))); stream_wrapper_register("var", "ArrayFileStream") or die("Failed to register protocol"); }
function setUpFS() { ArrayFileStream::set_filesystem(array('app' => array('controllers' => array('bar.php' => '<?', 'foo.php' => '<?', 'foo' => array('foobar.php' => '<?'), 'baz' => array('file.php' => '<?'))))); stream_wrapper_register('var', 'ArrayFileStream') or die('Failed to register protocol'); }
static function set_filesystem(array $fs) { ArrayFileStream::$fs = $fs; }
function setUpFS() { ArrayFileStream::set_filesystem(array('templates' => array('layout.php' => '<? $do_not_echo_this = $this->render_partial_collection("partial", range(1, 5));' . 'echo $content_for_layout;', 'partial.php' => 'partial', 'template.php' => 'template'))); stream_wrapper_register("var", "ArrayFileStream") or die("Failed to register protocol"); }
function setUpFS() { ArrayFileStream::set_filesystem(array('app' => array('views' => array('layout.php' => '[<?= $content_for_layout ?>]', 'foo' => array('index.php' => 'foo/index'))))); stream_wrapper_register("var", "ArrayFileStream") or die("Failed to register protocol"); }