File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ class TestCleanReport extends WP_UnitTestCase {
44 private $ wpephpc ;
55
66 public function setUp () {
7- $ root_dir = realpath ( __DIR__ . '/../../ ' );
7+ $ root_dir = realpath ( dirname ( __FILE__ ) . '/../../ ' );
88
9- $ this ->wpephpc = new \ WPEPHPCompat ( $ root_dir );
9+ $ this ->wpephpc = new WPEPHPCompat ( $ root_dir );
1010 }
1111
1212 public function test_clean_report_time () {
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ class TestGenerateIgnoredList extends WP_UnitTestCase {
55
66 public function setUp ()
77 {
8- $ root_dir = realpath ( __DIR__ . '/../../ ' );
8+ $ root_dir = realpath ( dirname ( __FILE__ ) . '/../../ ' );
99
10- $ this ->wpephpc = new \ WPEPHPCompat ( $ root_dir );
10+ $ this ->wpephpc = new WPEPHPCompat ( $ root_dir );
1111
1212 $ this ->wpephpc ->whitelist = array (
1313 '*/jetpack/* ' => '7.0 ' ,
Original file line number Diff line number Diff line change 22class TestScan extends WP_UnitTestCase {
33
44 function test_scan_default_PHP_55 () {
5- $ root_dir = realpath ( __DIR__ . '/../../ ' );
5+ $ root_dir = realpath ( dirname ( __FILE__ ) . '/../../ ' );
66
7- $ wpephpc = new \ WPEPHPCompat ( $ root_dir );
7+ $ wpephpc = new WPEPHPCompat ( $ root_dir );
88
99 $ wpephpc ->clean_after_scan ();
1010
@@ -18,9 +18,9 @@ function test_scan_default_PHP_55() {
1818 }
1919
2020 function test_scan_default_PHP_70 () {
21- $ root_dir = realpath ( __DIR__ . '/../../ ' );
21+ $ root_dir = realpath ( dirname ( __FILE__ ) . '/../../ ' );
2222
23- $ wpephpc = new \ WPEPHPCompat ( $ root_dir );
23+ $ wpephpc = new WPEPHPCompat ( $ root_dir );
2424
2525 $ wpephpc ->clean_after_scan ();
2626
You can’t perform that action at this time.
0 commit comments