The problem is the relative path. The __DIR__
uses the directory the file is in without a trailing separator. You are then changing the path with a relative path (/../
) to go up one directory.
See the manual entry -> PHP Manual for __DIR__
__DIR__ will return C:\MyProject\phpunit-tesztek\include
You are looking to use the C:\MyProject\include\
path
__DIR__ . '/../../include/Form.php';
I normally use the dirname(__FILE__)
myself, as it gets the current directory of the source code file (which is absolute) allowing my relative path to move from that location.