public function testShouldAllowClearingArbitraryJsStack() { $this->testShouldAllowAddingArbitraryJsToPrimaryDojoScriptTag(); $this->helper->clearJavascript(); $js = $this->helper->getJavascript(); $this->assertTrue(is_array($js)); $this->assertEquals(0, count($js)); }