jingcai-php/vendor/tymon/jwt-auth/tests/Middleware/AbstractMiddlewareTest.php

39 lines
819 B
PHP
Executable File

<?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Test\Middleware;
use Illuminate\Http\Request;
use Mockery;
use Tymon\JWTAuth\JWTAuth;
use Tymon\JWTAuth\Test\AbstractTestCase;
abstract class AbstractMiddlewareTest extends AbstractTestCase
{
/**
* @var \Mockery\MockInterface|\Tymon\JWTAuth\JWTAuth
*/
protected $auth;
/**
* @var \Mockery\MockInterface|\Illuminate\Http\Request
*/
protected $request;
public function setUp(): void
{
parent::setUp();
$this->auth = Mockery::mock(JWTAuth::class);
$this->request = Mockery::mock(Request::class);
}
}