mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added unit tests for Utils::testValidInstance()
This commit is contained in:
7
tests/phpunit/utils/fixtures/TestAbstractClass.php
Normal file
7
tests/phpunit/utils/fixtures/TestAbstractClass.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\utils\fixtures;
|
||||
|
||||
abstract class TestAbstractClass{
|
||||
|
||||
}
|
7
tests/phpunit/utils/fixtures/TestInstantiableClass.php
Normal file
7
tests/phpunit/utils/fixtures/TestInstantiableClass.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\utils\fixtures;
|
||||
|
||||
class TestInstantiableClass extends TestAbstractClass implements TestInterface{
|
||||
|
||||
}
|
7
tests/phpunit/utils/fixtures/TestInterface.php
Normal file
7
tests/phpunit/utils/fixtures/TestInterface.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\utils\fixtures;
|
||||
|
||||
interface TestInterface{
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\utils\fixtures;
|
||||
|
||||
class TestSubclassOfInstantiableClass extends TestInstantiableClass{
|
||||
|
||||
}
|
7
tests/phpunit/utils/fixtures/TestTrait.php
Normal file
7
tests/phpunit/utils/fixtures/TestTrait.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace pocketmine\utils\fixtures;
|
||||
|
||||
trait TestTrait{
|
||||
|
||||
}
|
Reference in New Issue
Block a user