public function testShouldAllowCapturingArbitraryJsToPrimaryDojoScriptTag() { $this->helper->javascriptCaptureStart(); echo 'var foo = "bar";'; $this->helper->javascriptCaptureEnd(); $js = $this->helper->getJavascript(); $this->assertEquals(1, count($js)); $this->assertContains('var foo = "bar";', $js[0]); }