Skip to content

Commit 7833d68

Browse files
committed
added a test for PHP 7.2 scan
1 parent 2f6c0e7 commit 7833d68

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/phpunit/test_scan.php

+16
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,20 @@ function test_scan_default_PHP_70() {
3232

3333
$this->assertContains( 'PHP 7.0 compatible.', $results );
3434
}
35+
36+
function test_scan_default_PHP_72() {
37+
$root_dir = realpath( dirname( __FILE__ ) . '/../../' );
38+
39+
$wpephpc = new WPEPHPCompat( $root_dir );
40+
41+
$wpephpc->clean_after_scan();
42+
43+
$wpephpc->test_version = '7.2';
44+
45+
$wpephpc->only_active = 'yes';
46+
47+
$results = $wpephpc->start_test();
48+
49+
$this->assertContains( 'PHP 7.2 compatible.', $results );
50+
}
3551
}

0 commit comments

Comments
 (0)