PHP Class SebastiaanLuca\Router\Tests\TestCase

Inheritance: extends Orchestra\Testbench\TestCase, use trait Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration
Show file Open project: sebastiaanluca/laravel-router

Protected Methods

Method Description
enablePublicAccessOfMethod ( mixed $class, string $name ) : ReflectionMethod Sets a private or protected class method to be publicly accessible.
enablePublicAccessOfProperty ( $class, $property ) : ReflectionProperty Sets a private or protected class property to be publicly accessible.
getPackageProviders ( Illuminate\Foundation\Application $app ) : array Get package providers.
mock ( string $class, mixed $parameters = [] ) : Mockery\MockInterface Mock a class and optionally bind it in the IoC container.
setValueOfInternalProperty ( object $instance, string $property, mixed $value ) : ReflectionProperty Set the value of a private or protected class property.

Method Details

enablePublicAccessOfMethod() protected method

Sets a private or protected class method to be publicly accessible.
protected enablePublicAccessOfMethod ( mixed $class, string $name ) : ReflectionMethod
$class mixed
$name string
return ReflectionMethod

enablePublicAccessOfProperty() protected method

Sets a private or protected class property to be publicly accessible.
protected enablePublicAccessOfProperty ( $class, $property ) : ReflectionProperty
$class
$property
return ReflectionProperty

getPackageProviders() protected method

Get package providers.
protected getPackageProviders ( Illuminate\Foundation\Application $app ) : array
$app Illuminate\Foundation\Application
return array

mock() protected method

Mock a class and optionally bind it in the IoC container.
protected mock ( string $class, mixed $parameters = [] ) : Mockery\MockInterface
$class string
$parameters mixed
return Mockery\MockInterface

setValueOfInternalProperty() protected method

Set the value of a private or protected class property.
protected setValueOfInternalProperty ( object $instance, string $property, mixed $value ) : ReflectionProperty
$instance object
$property string
$value mixed
return ReflectionProperty