File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ composer.phar
3
3
phpunit.xml
4
4
vendor /
5
5
build /
6
+ .phpunit.result.cache
Original file line number Diff line number Diff line change 10
10
fast_finish : true
11
11
12
12
before_script :
13
- - composer install --dev -- prefer-source
13
+ - composer install --prefer-source
14
14
15
- script : ./vendor/bin/phpunit --coverage-text
15
+ script : ./vendor/bin/phpunit --coverage-text
Original file line number Diff line number Diff line change 2
2
<phpunit bootstrap =" vendor/autoload.php"
3
3
colors =" true" >
4
4
<testsuites >
5
- <testsuite >
5
+ <testsuite name = " php-dom-wrapper testsuite " >
6
6
<directory >tests</directory >
7
7
</testsuite >
8
8
</testsuites >
20
20
<directory suffix =" .php" >src</directory >
21
21
</whitelist >
22
22
</filter >
23
- </phpunit >
23
+ </phpunit >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public function testDocumentSetHtmlEncoding() {
16
16
public function testDocumentParent () {
17
17
$ doc = $ this ->document ('<html></html> ' );
18
18
19
- $ this ->assertSame ( null , $ doc ->parent ());
19
+ $ this ->assertNull ( $ doc ->parent ());
20
20
}
21
21
22
22
public function testDocumentParents () {
@@ -35,6 +35,6 @@ public function testDocumentClone() {
35
35
$ doc = $ this ->document ('<html></html> ' );
36
36
$ clone = $ doc ->_clone ();
37
37
38
- $ this ->assertSame ( null , $ clone );
38
+ $ this ->assertNull ( $ clone );
39
39
}
40
- }
40
+ }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function testEq() {
26
26
$ this ->assertInstanceOf ('\DOMNode ' , $ nodes ->eq (3 ));
27
27
$ this ->assertSame ('div ' , $ nodes ->eq (3 )->nodeName );
28
28
29
- $ this ->assertSame ( null , $ nodes ->eq (4 ));
29
+ $ this ->assertNull ( $ nodes ->eq (4 ));
30
30
31
31
$ this ->assertInstanceOf ('\DOMNode ' , $ nodes ->eq (-1 ));
32
32
$ this ->assertSame ('div ' , $ nodes ->eq (-1 )->nodeName );
@@ -41,6 +41,6 @@ public function testEq() {
41
41
$ this ->assertSame ('div ' , $ nodes ->eq (-4 )->nodeName );
42
42
$ this ->assertSame ('example ' , $ nodes ->eq (-4 )->attr ('class ' ));
43
43
44
- $ this ->assertSame ( null , $ nodes ->eq (-5 ));
44
+ $ this ->assertNull ( $ nodes ->eq (-5 ));
45
45
}
46
- }
46
+ }
You can’t perform that action at this time.
0 commit comments