コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->json = '{"foo": "bar", "baz": {"quux": "jello"}}';
     $root = vfsStream::setup('foo');
     $root->addChild(vfsStream::newFile('config.json')->setContent($this->json));
     $this->reader = new ConfigReader(vfsStream::url('foo/config.json'));
 }
コード例 #2
0
ファイル: UuidTest.php プロジェクト: evalua/php-toolbox
 public function setUp()
 {
     parent::setUp();
     global $mockFunctionExists;
     $mockFunctionExists = false;
     global $functionExistsValue;
     $functionExistsValue = true;
 }