You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to reproduce
Create a "tests" folder, with inside it a new "tools" folder.
Inside the "tests" folder create a class like this :
namespace App\Tests;
use App\Tests\Tools\PHPUnitFrameworkTestCaseTools;
class FormProductBusinessTestTools extends PHPUnitFrameworkTestCaseTools
{
........
Inside the "tools" folder create a class like this :
namespace App\Tests\Tools;
abstract class PHPUnitFrameworkTestCaseTools extends TypeTestCase
{
........
Possible Solution
Solution i found for the moment is to add extra bootstrap to include this tools class :
If you want to rely on the default autoloading, the directory name must match the namespace name (i.e. your directory should be named Tools instead of tools). Otherwise you will need to adapt your autoloading configuration in the composer.json file.
But why folder tests works with tests instead of Tests ?
Outside of src folder, all folders have lower case name, why for tests\Tools ? that doesn't make sens ?
Symfony version(s) affected: 4.2.4
Description
I implemented a TestSuite based on this documentation with PHPUnit bridge on 4.2.4
https://symfony.com/doc/current/components/phpunit_bridge.html
But I tried to organize my tests class with some folders and abstract parent class
How to reproduce
Create a "tests" folder, with inside it a new "tools" folder.
Inside the "tests" folder create a class like this :
Inside the "tools" folder create a class like this :
Possible Solution
Solution i found for the moment is to add extra bootstrap to include this tools class :
Additional context
The text was updated successfully, but these errors were encountered: