Skip to content

Commit 8698886

Browse files
committed
[TASK] Add two test cases for ResourceMatcherTest
1 parent 5aca585 commit 8698886

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Tests/Unit/ResourceMatcherTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ public function matchDataProvider()
2929
['https://www.example.com/myfile.js'],
3030
[]
3131
],
32+
'simple script tag with parameter' => [
33+
'<script src="https://www.example.com/myfile.js?foo" />',
34+
['https://www.example.com/myfile.js?foo'],
35+
[]
36+
],
37+
'simple script tag with parameter and value' => [
38+
'<script src="https://www.example.com/myfile.js?foo=bar" />',
39+
['https://www.example.com/myfile.js?foo=bar'],
40+
[]
41+
],
3242
'multiple script tags' => [
3343
'<script src="https://www.example.com/myfile.js" /><link><script src="/myfile.js"></script>',
3444
['https://www.example.com/myfile.js', '/myfile.js'],

0 commit comments

Comments
 (0)