File tree Expand file tree Collapse file tree 6 files changed +9
-41
lines changed Expand file tree Collapse file tree 6 files changed +9
-41
lines changed Original file line number Diff line number Diff line change 28
28
fail-fast : false
29
29
matrix :
30
30
include :
31
- - php-version : ' 5.6'
32
- composer-flags : ' --prefer-stable --prefer-lowest'
33
31
- php-version : ' 7.0'
32
+ composer-flags : ' --prefer-stable --prefer-lowest'
34
33
- php-version : ' 7.1'
35
34
- php-version : ' 7.2'
36
35
- php-version : ' 7.3'
Original file line number Diff line number Diff line change 13
13
}
14
14
],
15
15
"require" : {
16
- "php" : " ^5.5 || ^ 7.0 || ^8.0" ,
16
+ "php" : " ^7.0 || ^8.0" ,
17
17
"ext-dom" : " *" ,
18
18
"ext-libxml" : " *" ,
19
- "phpunit/phpunit" : " ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0 || ^10.0" ,
20
- "phpunitgoodpractices/polyfill" : " ^1.4"
19
+ "phpunit/phpunit" : " ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0 || ^10.0"
21
20
},
22
21
"autoload" : {
23
22
"psr-4" : {
Original file line number Diff line number Diff line change @@ -51,17 +51,11 @@ public function __construct($xsd)
51
51
$ this ->xsd = $ xsd ;
52
52
}
53
53
54
- /**
55
- * {@inheritdoc}
56
- */
57
54
public function toString ()
58
55
{
59
56
return 'matches XSD ' ;
60
57
}
61
58
62
- /**
63
- * {@inheritdoc}
64
- */
65
59
protected function failureDescription ($ other )
66
60
{
67
61
if (\is_string ($ other )) {
@@ -79,15 +73,11 @@ protected function failureDescription($other)
79
73
return $ type .' ' .$ this ->toString ();
80
74
}
81
75
82
- /**
83
- * {@inheritdoc}
84
- */
85
76
protected function matches ($ other )
86
77
{
87
78
return \is_string ($ other )
88
79
? $ this ->stringMatches ($ other )
89
- : false
90
- ;
80
+ : false ;
91
81
}
92
82
93
83
/**
Original file line number Diff line number Diff line change @@ -47,17 +47,11 @@ public function __construct($xsd)
47
47
$ this ->xsd = $ xsd ;
48
48
}
49
49
50
- /**
51
- * {@inheritdoc}
52
- */
53
50
public function toString (): string
54
51
{
55
52
return 'matches XSD ' ;
56
53
}
57
54
58
- /**
59
- * {@inheritdoc}
60
- */
61
55
protected function failureDescription ($ other ): string
62
56
{
63
57
if (\is_string ($ other )) {
@@ -75,15 +69,11 @@ protected function failureDescription($other): string
75
69
return $ type .' ' .$ this ->toString ();
76
70
}
77
71
78
- /**
79
- * {@inheritdoc}
80
- */
81
72
protected function matches ($ other ): bool
82
73
{
83
74
return \is_string ($ other )
84
75
? $ this ->stringMatches ($ other )
85
- : false
86
- ;
76
+ : false ;
87
77
}
88
78
89
79
/**
Original file line number Diff line number Diff line change @@ -45,17 +45,11 @@ public function __construct($xsd)
45
45
$ this ->xsd = $ xsd ;
46
46
}
47
47
48
- /**
49
- * {@inheritdoc}
50
- */
51
48
public function toString (): string
52
49
{
53
50
return 'matches XSD ' ;
54
51
}
55
52
56
- /**
57
- * {@inheritdoc}
58
- */
59
53
protected function failureDescription ($ other ): string
60
54
{
61
55
if (\is_string ($ other )) {
@@ -73,15 +67,11 @@ protected function failureDescription($other): string
73
67
return $ type .' ' .$ this ->toString ();
74
68
}
75
69
76
- /**
77
- * {@inheritdoc}
78
- */
79
70
protected function matches ($ other ): bool
80
71
{
81
72
return \is_string ($ other )
82
73
? $ this ->stringMatches ($ other )
83
- : false
84
- ;
74
+ : false ;
85
75
}
86
76
87
77
/**
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ public function testAssertXMLMatchesXSD()
39
39
}
40
40
41
41
$ constraint ->evaluate ($ content ); // should not throw an exception
42
- static ::assertTrue ($ constraint ->evaluate ($ content , '' , true ));
42
+ self ::assertTrue ($ constraint ->evaluate ($ content , '' , true ));
43
43
}
44
44
45
45
public function testXMLValidConstraintBasics ()
46
46
{
47
47
$ constraint = new XmlMatchesXsd ('' );
48
- static ::assertSame (1 , $ constraint ->count ());
49
- static ::assertSame ('matches XSD ' , $ constraint ->toString ());
48
+ self ::assertSame (1 , $ constraint ->count ());
49
+ self ::assertSame ('matches XSD ' , $ constraint ->toString ());
50
50
}
51
51
52
52
public function testXMLValidConstraintFalse ()
You can’t perform that action at this time.
0 commit comments