mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
slim down some more logic
This commit is contained in:
parent
8b1045a631
commit
13fe6ec424
1 changed files with 2 additions and 2 deletions
|
@ -351,10 +351,10 @@ class TestShell extends Shell {
|
||||||
$testCase = substr($file, 0, -8);
|
$testCase = substr($file, 0, -8);
|
||||||
$testCase = str_replace(DS, '/', $testCase);
|
$testCase = str_replace(DS, '/', $testCase);
|
||||||
|
|
||||||
if ($testCase = preg_replace('@.*Test\/cases\/@', '', $testCase)) {
|
if ($testCase = preg_replace('@.*Test\/Case\/@', '', $testCase)) {
|
||||||
|
|
||||||
if ($category === 'core') {
|
if ($category === 'core') {
|
||||||
$testCase = str_replace('lib/Cake/Test/Case/', '', $testCase);
|
$testCase = str_replace('lib/Cake', '', $testCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $testCase;
|
return $testCase;
|
||||||
|
|
Loading…
Reference in a new issue