<?php

$loader = require __DIR__.'/../vendor/autoload.php';
$loader->add('Lisphp_Test', __DIR__);

<?php

$loader = require dirname(__FILE__) . '/../vendor/autoload.php';
$loader->add('Lisphp_Test', dirname(__FILE__));

Use classic dirname(__FILE__) instead of __DIR__
Use classic dirname(__FILE__) instead of __DIR__

For compatibility of older PHP versions
