mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
composer.json - move tests-related classes to "autoload-dev" section (used for development purposes only and avoid polluting the autoloader in production)
This commit is contained in:
@@ -27,8 +27,12 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Meritoo\\Common\\": "src/Meritoo/Common/",
|
"Meritoo\\Common\\": "src/"
|
||||||
"Meritoo\\Common\\Test\\": "tests/Meritoo/Common/Test/"
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"Meritoo\\Common\\Test\\": "tests/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,8 +159,8 @@ class MiscellaneousTest extends BaseTestCase
|
|||||||
$expected = "int(123)\n";
|
$expected = "int(123)\n";
|
||||||
|
|
||||||
if ($xdebugLoaded) {
|
if ($xdebugLoaded) {
|
||||||
$libraryPath = realpath(sprintf('%s%s', dirname(__FILE__), '/../../../../..'));
|
$libraryPath = realpath(sprintf('%s%s', dirname(__FILE__), '/../..'));
|
||||||
$filePath = sprintf('%s%s', $libraryPath, '/src/Meritoo/Common/Utilities/Miscellaneous.php:');
|
$filePath = sprintf('%s%s', $libraryPath, '/src/Utilities/Miscellaneous.php:');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attention. I have to use "\d+" at the end of $filePath, because number of line may be different if new
|
* Attention. I have to use "\d+" at the end of $filePath, because number of line may be different if new
|
||||||
Reference in New Issue
Block a user