Property | Type | Description | |
---|---|---|---|
$app | Illuminate\Contracts\Foundation\Application | The application instance being facaded. | |
$resolvedInstance | array | The resolved object instances. |
Method | Description | |
---|---|---|
__callStatic ( string $method, array $args ) : mixed | Handle dynamic, static calls to the object. | |
clearResolvedInstance ( string $name ) : void | Clear a resolved facade instance. | |
clearResolvedInstances ( ) : void | Clear all of the resolved instances. | |
getFacadeApplication ( ) : Illuminate\Contracts\Foundation\Application | Get the application instance behind the facade. | |
getFacadeRoot ( ) : mixed | Get the root object behind the facade. | |
setFacadeApplication ( Illuminate\Contracts\Foundation\Application $app ) : void | Set the application instance. | |
shouldReceive ( ) : |
Initiate a mock expectation on the facade. | |
spy ( ) : void | Convert the facade into a Mockery spy. | |
swap ( mixed $instance ) : void | Hotswap the underlying instance behind the facade. |
Method | Description | |
---|---|---|
createFreshMockInstance ( string $name ) : |
Create a fresh mock instance for the given class. | |
createMockByName ( string $name ) : Mockery\MockInterface | Create a fresh mock instance for the given class. | |
getFacadeAccessor ( ) : string | Get the registered name of the component. | |
getMockableClass ( ) : string | null | Get the mockable class for the bound instance. | |
isMock ( ) : boolean | Determines whether a mock is set as the instance of the facade. | |
resolveFacadeInstance ( string | object $name ) : mixed | Resolve the facade root instance from the container. |
public static clearResolvedInstance ( string $name ) : void | ||
$name | string | |
return | void |
public static clearResolvedInstances ( ) : void | ||
return | void |
protected static createFreshMockInstance ( string $name ) : |
||
$name | string | |
return |
protected static createMockByName ( string $name ) : Mockery\MockInterface | ||
$name | string | |
return | Mockery\MockInterface |
protected static getFacadeAccessor ( ) : string | ||
return | string |
public static getFacadeApplication ( ) : Illuminate\Contracts\Foundation\Application | ||
return | Illuminate\Contracts\Foundation\Application |
public static getFacadeRoot ( ) : mixed | ||
return | mixed |
protected static getMockableClass ( ) : string | null | ||
return | string | null |
public static setFacadeApplication ( Illuminate\Contracts\Foundation\Application $app ) : void | ||
$app | Illuminate\Contracts\Foundation\Application | |
return | void |
public static shouldReceive ( ) : |
||
return |
protected static Application,Illuminate\Contracts\Foundation $app | ||
return | Illuminate\Contracts\Foundation\Application |
protected static array $resolvedInstance | ||
return | array |