Commit 61a6072 1 parent f7285e7 commit 61a6072 Copy full SHA for 61a6072
File tree 4 files changed +48
-4
lines changed
4 files changed +48
-4
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ - push
3
+ - pull_request
4
+
5
+ jobs :
6
+ phpunit :
7
+ runs-on : ubuntu-latest
8
+
9
+ strategy :
10
+ matrix :
11
+ php :
12
+ - ' 5.3'
13
+ - ' 5.4'
14
+ - ' 5.5'
15
+ - ' 5.6'
16
+ - ' 7.0'
17
+ - ' 7.1'
18
+ - ' 7.2'
19
+ - ' 7.3'
20
+ - ' 7.4'
21
+ - ' 8.0'
22
+ - ' 8.1'
23
+ - ' 8.2'
24
+ - ' 8.3'
25
+ - ' 8.4'
26
+
27
+ steps :
28
+ - name : Checkout the source code
29
+ uses : actions/checkout@v4
30
+
31
+ - name : Set up PHP
32
+ uses : shivammathur/setup-php@v2
33
+ with :
34
+ php-version : ' ${{ matrix.php }}'
35
+
36
+ - name : Install dependencies
37
+ run : composer install
38
+
39
+ - name : Run tests
40
+ run : |
41
+ vendor/bin/phpunit
42
+ vendor/bin/phpunit test/CommonMarkTestWeak.php || true
Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ protected function blockRule($Line)
712
712
#
713
713
# Setext
714
714
715
- protected function blockSetextHeader ($ Line , ? array $ Block = null )
715
+ protected function blockSetextHeader ($ Line , array $ Block = null )
716
716
{
717
717
if ( ! isset ($ Block ) or isset ($ Block ['type ' ]) or isset ($ Block ['interrupted ' ]))
718
718
{
@@ -850,7 +850,7 @@ protected function blockReference($Line)
850
850
#
851
851
# Table
852
852
853
- protected function blockTable ($ Line , ? array $ Block = null )
853
+ protected function blockTable ($ Line , array $ Block = null )
854
854
{
855
855
if ( ! isset ($ Block ) or isset ($ Block ['type ' ]) or isset ($ Block ['interrupted ' ]))
856
856
{
Original file line number Diff line number Diff line change 17
17
"ext-mbstring" : " *"
18
18
},
19
19
"require-dev" : {
20
- "phpunit/phpunit" : " ^4.8.35 "
20
+ "phpunit/phpunit" : " ^4.8|^5.7|^6.5|^7.5|^8.5|^9.6 "
21
21
},
22
22
"autoload" : {
23
23
"psr-0" : {"Parsedown" : " " }
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use PHPUnit \Framework \TestCase ;
4
+
3
5
/**
4
6
* Test Parsedown against the CommonMark spec
5
7
*
6
8
* @link http://commonmark.org/ CommonMark
7
9
*/
8
- class CommonMarkTestStrict extends PHPUnit_Framework_TestCase
10
+ class CommonMarkTestStrict extends TestCase
9
11
{
10
12
const SPEC_URL = 'https://raw.githubusercontent.com/jgm/CommonMark/master/spec.txt ' ;
11
13
You can’t perform that action at this time.
0 commit comments