function testRedirectRemoteUser() { $request = HTTP\Sapi::createFromServerArray(['REDIRECT_REMOTE_USER' => 'username']); $response = new HTTP\Response(); $backend = new Apache(); $this->assertEquals([true, 'principals/username'], $backend->check($request, $response)); }