Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 9dbade0

Browse files
committed
doctype should not affect other tests
1 parent 6ab5f0e commit 9dbade0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Helper/HeadScriptTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,11 @@ public function testSupportsCrossOriginAttribute()
476476

477477
public function testOmitsTypeAttributeIfEmptyValue()
478478
{
479+
$doctype = $this->view->plugin('doctype')->getDoctype();
479480
$this->view->plugin('doctype')->setDoctype(\Zend\View\Helper\Doctype::HTML5);
480481
$this->helper->__invoke()->appendScript('// some script' . PHP_EOL, '');
481482
$test = $this->helper->__invoke()->toString();
482483
$this->assertNotContains('type', $test);
484+
$this->view->plugin('doctype')->setDoctype($doctype);
483485
}
484486
}

0 commit comments

Comments
 (0)