LogicException: Class 'PHPUnit\Framework\TestCase' not found.

LogicException ("Class 'PHPUnit\Framework\TestCase' not found.")

87/usr/share/nginx/html/lib/Autoloader.php

85.         return false;
86.     }
87.     throw new LogicException ("Class '$orig' not found.");
88. }
89.

spl_autoload_call ("PHPUnit\Framework\TestCase")

74/usr/share/nginx/html/lib/AppTest.php

72.  *     ?>
73.  */
74. class AppTest extends TestCase {
75.     /**
76.      Prevent these from being reset between tests.

require_once ("/usr/share/nginx/html/lib/AppTest.php")

69/usr/share/nginx/html/lib/Autoloader.php

67.     } elseif (file_exists ('lib/' $class '.php')) {
68.         // No namespace, check in lib/ first
69.         require_once ('lib/' $class '.php');
70.         return true;
71.     } elseif (file_exists ('lib/vendor/' str_replace ('_''/'$class) . '.php')) {

ReflectionClass->__construct ("AppTest")

9/usr/share/nginx/html/apps/visor/handlers/lib.php

7. $lib = isset ($this->params[0]) ? $this->params[0] : $this->redirect ('/visor');
8.
9. $ref = new ReflectionClass ($lib);
10.
11. $page->title i18n_get ('Class') . ': ' $lib;

require ("/usr/share/nginx/html/apps/visor/handlers/lib.php")

516/usr/share/nginx/html/lib/Controller.php

514.         // Run the handler and get its output
515.         ob_start ();
516.         $res = require ($handler);
517.         $out ob_get_clean ();
518.         if (is_string ($res) && strlen ($res) > 0) {

Controller->handle ("apps/visor/handlers/lib.php", false)

216/usr/share/nginx/html/lib/FrontController.php

214.             $handler $controller->route ($_SERVER['REQUEST_URI']);
215.         }
216.         $page->body $controller->handle ($handlerfalse);
217.
218.         /**

FrontController::run ()

34/usr/share/nginx/html/index.php

32. $argc = isset ($argc) ? $argc null;
33. $argv = isset ($argv) ? $argv null;
34. return FrontController::run ($argv$argc);

Error Context

$_COOKIE = array ();

$_SERVER = array (
    
"USER" => "www-data"
    "HOME" 
=> "/var/www"
    "HTTP_HOST" 
=> "www.elefantcms.com"
    "HTTP_USER_AGENT" 
=> "claudebot"
    "HTTP_ACCEPT" 
=> "*/*"
    "REDIRECT_STATUS" 
=> 200
    
"SERVER_NAME" => "elefantcms.com"
    "SERVER_PORT" 
=> 443
    
"SERVER_ADDR" => "192.241.172.148"
    "REMOTE_PORT" 
=> 43100
    
"REMOTE_ADDR" => "44.223.42.120"
    "SERVER_SOFTWARE" 
=> "nginx/1.14.0"
    "GATEWAY_INTERFACE" 
=> "CGI/1.1"
    "HTTPS" 
=> "on"
    "REQUEST_SCHEME" 
=> "https"
    "SERVER_PROTOCOL" 
=> "HTTP/1.1"
    "DOCUMENT_ROOT" 
=> "/usr/share/nginx/html"
    "DOCUMENT_URI" 
=> "/index.php"
    "REQUEST_URI" 
=> "/visor/lib/AppTest"
    "SCRIPT_NAME" 
=> "/index.php"
    "CONTENT_LENGTH" 
=> ""
    "CONTENT_TYPE" 
=> ""
    "REQUEST_METHOD" 
=> "GET"
    "QUERY_STRING" 
=> ""
    "SCRIPT_FILENAME" 
=> "/usr/share/nginx/html/index.php"
    "FCGI_ROLE" 
=> "RESPONDER"
    "PHP_SELF" 
=> "/index.php"
    "REQUEST_TIME_FLOAT" 
=> 1711706845.4513
    
"REQUEST_TIME" => 1711706845
);