Move event test fixtures to a subdirectory

This commit is contained in:
Dylan K. Taylor 2024-11-20 15:40:34 +00:00
parent 49bdaee930
commit 844ba0ff9f
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
11 changed files with 26 additions and 9 deletions

View File

@ -24,6 +24,9 @@ declare(strict_types=1);
namespace pocketmine\event;
use PHPUnit\Framework\TestCase;
use pocketmine\event\fixtures\TestChildEvent;
use pocketmine\event\fixtures\TestGrandchildEvent;
use pocketmine\event\fixtures\TestParentEvent;
use pocketmine\plugin\Plugin;
use pocketmine\plugin\PluginManager;
use pocketmine\Server;

View File

@ -24,6 +24,12 @@ declare(strict_types=1);
namespace pocketmine\event;
use PHPUnit\Framework\TestCase;
use pocketmine\event\fixtures\TestAbstractAllowHandleEvent;
use pocketmine\event\fixtures\TestAbstractEvent;
use pocketmine\event\fixtures\TestConcreteEvent;
use pocketmine\event\fixtures\TestConcreteExtendsAbstractEvent;
use pocketmine\event\fixtures\TestConcreteExtendsAllowHandleEvent;
use pocketmine\event\fixtures\TestConcreteExtendsConcreteEvent;
class HandlerListManagerTest extends TestCase{

View File

@ -21,7 +21,9 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
use pocketmine\event\Event;
/**
* @allowHandle

View File

@ -21,7 +21,9 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
use pocketmine\event\Event;
abstract class TestAbstractEvent extends Event{

View File

@ -21,7 +21,7 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
class TestChildEvent extends TestParentEvent{

View File

@ -21,7 +21,9 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
use pocketmine\event\Event;
class TestConcreteEvent extends Event{

View File

@ -21,7 +21,7 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
class TestConcreteExtendsAbstractEvent extends TestAbstractEvent{

View File

@ -21,7 +21,7 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
class TestConcreteExtendsAllowHandleEvent extends TestAbstractAllowHandleEvent{

View File

@ -21,7 +21,7 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
class TestConcreteExtendsConcreteEvent extends TestConcreteEvent{

View File

@ -21,7 +21,7 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
class TestGrandchildEvent extends TestChildEvent{

View File

@ -21,7 +21,9 @@
declare(strict_types=1);
namespace pocketmine\event;
namespace pocketmine\event\fixtures;
use pocketmine\event\Event;
class TestParentEvent extends Event{