2018-11-01 12:44:47 +00:00
|
|
|
<?php
|
2024-08-24 12:31:41 +00:00
|
|
|
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-11-01 12:44:47 +00:00
|
|
|
|
|
|
|
namespace Friendica\Test;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class verifies each mock after each call
|
|
|
|
*/
|
2024-12-11 22:45:17 +00:00
|
|
|
abstract class MockedTestCase extends TestCase
|
2018-11-01 12:44:47 +00:00
|
|
|
{
|
2021-04-01 21:04:30 +00:00
|
|
|
protected function tearDown() : void
|
2018-11-01 12:44:47 +00:00
|
|
|
{
|
|
|
|
\Mockery::close();
|
|
|
|
|
|
|
|
parent::tearDown();
|
|
|
|
}
|
|
|
|
}
|