Skip to content

Commit 08fb2ea

Browse files
committed
Update tests to allow newer themes.
1 parent ebeeea0 commit 08fb2ea

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/phpunit/test_scan.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
class 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
}

0 commit comments

Comments
 (0)