i'm working on an application in a modular way, that is, i have a interface and i want to make an unit test for all the classes that implement that interface so i made an abstract class that have all the logic implemented(testing if the class is actually implementing the interface, testing the return values and so on) but when i try to inherit the abstract class i get an class not found exception
i'm working with namespaces so my directory structure is like this
namespaceA
|->abstract.php
|->namespaceB
|->pluginTest.php
so my pluginTest.php class definition is like this
namespace namespaceA\namespaceB;
use namespaceA\Abstract;
class pluginTest extends Abstract
and obviously in my abstract class there is the namespaceA definition, i have also tried to manually include the file (include("../Abstract.php")
) but it failed, but since i have used autoloading for a while maybe i don't remember well how to manually import, i also have tried with alias of the class (using namespaceA\Abstract as X
) and by putting an \
before the namespaceA but nothing work, what im doing wrong, or what im missing
==edit==
i managed to load the class using
include __DIR__ ."/../Abstract.php";
but still not autoloading