diff --git a/Yoast/Tests/Files/TestDoublesUnitTest.php b/Yoast/Tests/Files/TestDoublesUnitTest.php index 9401a866..9e1ca262 100644 --- a/Yoast/Tests/Files/TestDoublesUnitTest.php +++ b/Yoast/Tests/Files/TestDoublesUnitTest.php @@ -41,7 +41,7 @@ public function setCliValues( $testFile, $config ) { */ protected function getTestFiles( $testFileBase ) { $sep = \DIRECTORY_SEPARATOR; - $test_files = \glob( \dirname( $testFileBase ) . $sep . 'TestDoublesUnitTests{' . $sep . ',' . $sep . '*' . $sep . '}*.inc', \GLOB_BRACE ); + $test_files = \glob( \dirname( $testFileBase ) . $sep . 'TestDoublesUnitTests' . $sep . 'tests{' . $sep . ',' . $sep . '*' . $sep . '}*.inc', \GLOB_BRACE ); if ( ! empty( $test_files ) ) { return $test_files; @@ -117,7 +117,7 @@ public function getErrorList( $testFile = '' ) { // In tests/mocks. case 'correct-custom-dir-not-mock.inc': return [ - 3 => 1, + 4 => 1, ]; case 'not-double-or-mock.inc': // In tests.