Termbox

 view release on metacpan or  search on metacpan

termbox2/tests/test_prepend.php  view on Meta::CPAN

    private string $test_log;

    public function __construct() {
        setlocale(LC_ALL, '');
        $this->ffi = $this->makeFfi();
        $this->test_log = $GLOBALS['argv'][1] ?? '';
    }

    private function makeFfi(): object {
        // Make FFI
        [ $ffi, $defines ] = require __DIR__ . '/test_ffi.php';
        $this->defines = $defines;

        // Return wrapper that logs FFI calls
        return new class($ffi, $this) {
            private FFI $ffi;
            private object $test;
            public function __construct($ffi, $test) {
                $this->ffi = $ffi;
                $this->test = $test;
            }



( run in 0.331 second using v1.01-cache-2.11-cpan-0d8aa00de5b )