diff --git a/test/Helper/HeadScriptTest.php b/test/Helper/HeadScriptTest.php index acfec2ad..48b4ec26 100644 --- a/test/Helper/HeadScriptTest.php +++ b/test/Helper/HeadScriptTest.php @@ -458,4 +458,14 @@ public function testNoEscapeTrue() $this->assertNotContains('//', $test); } + + public function testSupportsCrossOriginAttribute() + { + $this->helper->__invoke()->appendScript( + '// some script' . PHP_EOL, 'text/javascript', array('crossorigin' => true) + ); + $test = $this->helper->__invoke()->toString(); + + $this->assertContains('crossorigin="', $test); + } }