File tree Expand file tree Collapse file tree 9 files changed +120
-46
lines changed
Expand file tree Collapse file tree 9 files changed +120
-46
lines changed Original file line number Diff line number Diff line change 1+ name : Benchmarks
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ phpbench :
11+ name : " PHPBench"
12+ runs-on : " ubuntu-20.04"
13+
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ php-version :
18+ - " 5.4"
19+ - " 7.4"
20+ - " 8.2"
21+
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@v2
25+
26+ - name : Setup PHP
27+ uses : shivammathur/setup-php@v2
28+ with :
29+ php-version : ${{ matrix.php-version }}
30+
31+ - name : " Install dependencies with Composer"
32+ uses : " ramsey/composer-install@v2"
33+
34+ - name : Run performance tests
35+ run : |
36+ php test/benchmark/run.php 10
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ phpunit :
11+ name : " PHPUnit"
12+ runs-on : " ubuntu-20.04"
13+
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ php-version :
18+ - " 5.3"
19+ - " 5.4"
20+ - " 7.4"
21+ - " 8.0"
22+ - " 8.1"
23+ - " 8.2"
24+
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v2
28+
29+ - name : Setup PHP
30+ uses : shivammathur/setup-php@v2
31+ with :
32+ php-version : ${{ matrix.php-version }}
33+
34+ - name : " Install dependencies with Composer"
35+ uses : " ramsey/composer-install@v2"
36+
37+ - name : Run tests
38+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 1+ name : CS
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ php-cs-fixer :
11+ name : " php-cs-fixer"
12+ runs-on : " ubuntu-20.04"
13+
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ php-version :
18+ - " 7.1"
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v2
23+
24+ - name : Setup PHP
25+ uses : shivammathur/setup-php@v2
26+ with :
27+ php-version : ${{ matrix.php-version }}
28+
29+ - name : cs fix
30+ run : |
31+ wget -q https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.13.1/php-cs-fixer.phar
32+ php php-cs-fixer.phar fix --dry-run --diff
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ issues known issues that are not presently on the roadmap:
189189- Scripts: This parser does not contain a JavaScript or a CSS
190190 interpreter. While one may be supplied, not all features will be
191191 supported.
192- - Rentrance : The current parser is not re-entrant. (Thus you can't pause
192+ - Reentrance : The current parser is not re-entrant. (Thus you can't pause
193193 the parser to modify the HTML string mid-parse.)
194194- Validation: The current tree builder is ** not** a validating parser.
195195 While it will correct some HTML, it does not check that the HTML
Original file line number Diff line number Diff line change 2525 "php" : " >=5.3.0"
2626 },
2727 "require-dev" : {
28- "phpunit/phpunit" : " ^4.8.35 || ^5.7.21 || ^6 || ^7"
28+ "phpunit/phpunit" : " ^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 "
2929 },
3030 "autoload" : {
3131 "psr-4" : {"Masterminds\\ " : " src" }
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ class Html5Test extends TestCase
1111 */
1212 private $ html5 ;
1313
14- public function setUp ()
14+ /**
15+ * @before
16+ */
17+ public function before ()
1518 {
1619 $ this ->html5 = $ this ->getInstance ();
1720 }
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase
2424 */
2525 protected $ html5 ;
2626
27- public function setUp ()
27+ /**
28+ * @before
29+ */
30+ public function before ()
2831 {
2932 $ this ->html5 = $ this ->getInstance ();
3033 }
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
1818 </body>
1919 </html> ' ;
2020
21- public function setUp ()
21+ /**
22+ * @before
23+ */
24+ public function before ()
2225 {
2326 $ this ->html5 = $ this ->getInstance ();
2427 }
You can’t perform that action at this time.
0 commit comments