We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7ea99 commit ebeeea0Copy full SHA for ebeeea0
tests/phpunit/test_generate_ignored_list.php
@@ -70,4 +70,15 @@ function test_generate_ignored_list_version_55() {
70
$this->assertNotContains( '*/fakeplugin/*', $ignored );
71
$this->assertNotContains( '*/oldplugin/*', $ignored );
72
}
73
+
74
+ function test_filter_ignored_list() {
75
76
+ tests_add_filter( 'phpcompat_whitelist', function( $whitelist ) {
77
+ return array_merge( $whitelist, array( '*/filterplugin/*') );
78
+ } );
79
80
+ $ignored = $this->wpephpc->generate_ignored_list();
81
82
+ $this->assertContains( '*/filterplugin/*', $ignored );
83
+ }
84
0 commit comments