* @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://website.orange-management.de */ namespace Tests\PHPUnit\phpOMS\Account; use phpOMS\Auth\Auth; use phpOMS\Auth\LoginReturnType; use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\DataStorage\Session\ConsoleSession; use phpOMS\DataStorage\Session\SocketSession; require_once __DIR__ . '/../Autoloader.php'; class AuthTest extends \PHPUnit\Framework\TestCase { public function testWithHttpSession() { self::assertEquals(0, Auth::authenticate($GLOBALS['httpSession'])); Auth::logout($GLOBALS['httpSession']); self::assertEquals(0, Auth::authenticate($GLOBALS['httpSession'])); } }