} $errorMessage = 'Expected the following files to have a correct namespace:' . \PHP_EOL . \PHP_EOL .
print_r($errors, true
);
static::
assertCount(0,
$errors,
$errorMessage);
} public function testNoGlobalExceptionDirectories(): void
{ $result =
glob(__DIR__ . '/../../*/Exception'
);
static::
assertIsIterable($result);
static::
assertCount(0,
$result, 'No global Exception directories allowed, put your exceptions in the right domain directory, violations: ' .
print_r($result, true
));
} public function testNoGlobalCommandDirectories(): void
{ $result =
glob(__DIR__ . '/../../*/Command'
);
static::
assertIsIterable($result);
static::
assertCount(0,
$result, 'No global Command directories allowed, put your commands in the right domain directory, violations: ' .
print_r($result, true
));
} /**
* @param array<string> $basePathParts
*
* @return array<string>
*/