path->append(__DIR__ . '/lib'); class PyLoader { static array $modules; static function import(string $name) { if (!isset(self::$modules[$name])) { self::$modules[$name] = PyCore::import($name); } return self::$modules[$name]; } } class FnCallableClass { private $phpunit; private $uuid; function __construct($phpunit, $uuid) { $this->phpunit = $phpunit; $this->uuid = $uuid; } function __invoke($namespace) { $this->phpunit->assertEquals($namespace, 'app.user'); return $this->uuid; } function test($namespace) { $this->phpunit->assertEquals($namespace, 'app.user'); return $this->uuid; } }