File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 22class TestScan extends WP_UnitTestCase {
33
44 function test_scan_default_PHP_55 () {
5- $ expected_results = "Name: Twenty Sixteen
6-
7- PHP 5.5 compatible.
8-
9- " ;
105 $ root_dir = realpath ( __DIR__ . '/../../ ' );
116
127 $ wpephpc = new \WPEPHPCompat ( $ root_dir );
@@ -19,15 +14,10 @@ function test_scan_default_PHP_55() {
1914
2015 $ results = $ wpephpc ->start_test ();
2116
22- $ this ->assertEquals ( $ expected_results , $ results );
17+ $ this ->assertContains ( ' PHP 5.5 compatible. ' , $ results );
2318 }
2419
2520 function test_scan_default_PHP_70 () {
26- $ expected_results = "Name: Twenty Sixteen
27-
28- PHP 7.0 compatible.
29-
30- " ;
3121 $ root_dir = realpath ( __DIR__ . '/../../ ' );
3222
3323 $ wpephpc = new \WPEPHPCompat ( $ root_dir );
@@ -40,6 +30,6 @@ function test_scan_default_PHP_70() {
4030
4131 $ results = $ wpephpc ->start_test ();
4232
43- $ this ->assertEquals ( $ expected_results , $ results );
33+ $ this ->assertContains ( ' PHP 7.0 compatible. ' , $ results );
4434 }
4535}
You can’t perform that action at this time.
0 commit comments