/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $paths = new \SplPriorityQueue(); $paths->insert('libraries/windwalker/resource/asset/{type}', 800); $paths->insert('libraries/windwalker/test/Asset/Stub/{type}', 500); $paths->insert('media/jui/{type}', 300); $paths->insert('media/{name}/{type}', 100); $this->instance = new AssetManager('test', $paths); $this->instance->setDoc($this->doc = new MockHtmlDocument()); $this->doc->reset(); }
/** * setUp * * @return void */ public function setUp() { CoreScript::getAsset()->setDoc($doc = new MockHtmlDocument()); $this->doc = $doc; $doc->reset(); CoreScript::reset(true); }