* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Test; use Mockery; use Carbon\Carbon; use PHPUnit\Framework\TestCase; abstract class AbstractTestCase extends TestCase { /** * @var int */ protected $testNowTimestamp; public function setUp() { parent::setUp(); Carbon::setTestNow($now = Carbon::now()); $this->testNowTimestamp = $now->getTimestamp(); } public function tearDown() { Carbon::setTestNow(); Mockery::close(); parent::tearDown(); } }