File tree Expand file tree Collapse file tree 8 files changed +119
-45
lines changed Expand file tree Collapse file tree 8 files changed +119
-45
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 25
25
"php" : " >=5.3.0"
26
26
},
27
27
"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 "
29
29
},
30
30
"autoload" : {
31
31
"psr-4" : {"Masterminds\\ " : " src" }
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ class Html5Test extends TestCase
11
11
*/
12
12
private $ html5 ;
13
13
14
- public function setUp ()
14
+ /**
15
+ * @before
16
+ */
17
+ public function before ()
15
18
{
16
19
$ this ->html5 = $ this ->getInstance ();
17
20
}
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ class OutputRulesTest extends \Masterminds\HTML5\Tests\TestCase
24
24
*/
25
25
protected $ html5 ;
26
26
27
- public function setUp ()
27
+ /**
28
+ * @before
29
+ */
30
+ public function before ()
28
31
{
29
32
$ this ->html5 = $ this ->getInstance ();
30
33
}
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ class TraverserTest extends \Masterminds\HTML5\Tests\TestCase
18
18
</body>
19
19
</html> ' ;
20
20
21
- public function setUp ()
21
+ /**
22
+ * @before
23
+ */
24
+ public function before ()
22
25
{
23
26
$ this ->html5 = $ this ->getInstance ();
24
27
}
You can’t perform that action at this time.
0 commit comments