File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2323 - " 8.2"
2424 - " 8.3"
2525 - " 8.4"
26+ - " 8.5"
2627
2728 steps :
2829 - name : Checkout code
Original file line number Diff line number Diff line change 2424 "php" : " >=5.3.0"
2525 },
2626 "require-dev" : {
27- "phpunit/phpunit" : " ^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9"
27+ "phpunit/phpunit" : " ^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9 || ^10 "
2828 },
2929 "autoload" : {
3030 "psr-4" : {"Masterminds\\ " : " src" }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit colors =" true" bootstrap =" vendor/autoload.php" >
2+ <phpunit
3+ colors =" true"
4+ bootstrap =" vendor/autoload.php"
5+ failOnDeprecation =" true"
6+ displayDetailsOnTestsThatTriggerDeprecations =" true"
7+ >
38 <testsuites >
49 <testsuite name =" PHPUnit" >
510 <directory >test/HTML5/</directory >
Original file line number Diff line number Diff line change @@ -560,4 +560,12 @@ public function testAnchorTargetQueryParam()
560560 $ this ->assertContains ('<a href="https://domain.com/page.php?foo=bar&target=baz">https://domain.com/page.php?foo=bar&target=baz</a> ' , $ res );
561561 }
562562 }
563+
564+ public function testEndsWithSlash ()
565+ {
566+ $ html = '<p>Visit <a href="http://example.com/">example.com</ ' ;
567+ $ expected = '<p>Visit <a href="http://example.com/">example.com</a></p> ' ;
568+ $ doc = $ this ->html5 ->loadHTMLFragment ($ html );
569+ $ this ->assertSame ($ expected , $ this ->html5 ->saveHTML ($ doc ));
570+ }
563571}
You can’t perform that action at this time.
0 commit comments