mirror of
https://github.com/superhelio/commands.git
synced 2026-01-31 17:46:55 +00:00
Added new tests, updated composer.json and added auto-discovery
This commit is contained in:
24
tests/PackageTest.php
Normal file
24
tests/PackageTest.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Superhelio\Commands;
|
||||
|
||||
use ReflectionClass;
|
||||
|
||||
class PackageTest extends \Orchestra\Testbench\TestCase
|
||||
{
|
||||
public function test_facade()
|
||||
{
|
||||
$facade = new ReflectionClass(Facade::class);
|
||||
$this->assertTrue($facade->hasMethod('getFacadeAccessor'));
|
||||
$this->assertTrue($facade->getMethod('getFacadeAccessor')->isProtected());
|
||||
$this->assertTrue($facade->getMethod('getFacadeAccessor')->isStatic());
|
||||
}
|
||||
|
||||
public function test_service_provider()
|
||||
{
|
||||
$sp = new ReflectionClass(\Superhelio\Commands\ServiceProvider::class);
|
||||
$this->assertTrue($sp->hasMethod('register'));
|
||||
$this->assertTrue($sp->hasMethod('registerReloader'));
|
||||
$this->assertTrue($sp->hasMethod('registerGozer'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user