%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/codeception/base/src/Codeception/Lib/Shared/ |
Upload File : |
<?php namespace Codeception\Lib\Shared; /** * Common functions for Laravel family * * @package Codeception\Lib\Shared */ trait LaravelCommon { /** * Add a binding to the Laravel service container. * (https://laravel.com/docs/master/container) * * ``` php * <?php * $I->haveBinding('My\Interface', 'My\Implementation'); * ?> * ``` * * @param $abstract * @param $concrete */ public function haveBinding($abstract, $concrete) { $this->client->haveBinding($abstract, $concrete); } /** * Add a singleton binding to the Laravel service container. * (https://laravel.com/docs/master/container) * * ``` php * <?php * $I->haveSingleton('My\Interface', 'My\Singleton'); * ?> * ``` * * @param $abstract * @param $concrete */ public function haveSingleton($abstract, $concrete) { $this->client->haveBinding($abstract, $concrete, true); } /** * Add a contextual binding to the Laravel service container. * (https://laravel.com/docs/master/container) * * ``` php * <?php * $I->haveContextualBinding('My\Class', '$variable', 'value'); * * // This is similar to the following in your Laravel application * $app->when('My\Class') * ->needs('$variable') * ->give('value'); * ?> * ``` * * @param $concrete * @param $abstract * @param $implementation */ public function haveContextualBinding($concrete, $abstract, $implementation) { $this->client->haveContextualBinding($concrete, $abstract, $implementation); } /** * Add an instance binding to the Laravel service container. * (https://laravel.com/docs/master/container) * * ``` php * <?php * $I->haveInstance('My\Class', new My\Class()); * ?> * ``` * * @param $abstract * @param $instance */ public function haveInstance($abstract, $instance) { $this->client->haveInstance($abstract, $instance); } /** * Register a handler than can be used to modify the Laravel application object after it is initialized. * The Laravel application object will be passed as an argument to the handler. * * ``` php * <?php * $I->haveApplicationHandler(function($app) { * $app->make('config')->set(['test_value' => '10']); * }); * ?> * ``` * * @param $handler */ public function haveApplicationHandler($handler) { $this->client->haveApplicationHandler($handler); } /** * Clear the registered application handlers. * * ``` php * <?php * $I->clearApplicationHandlers(); * ?> * ``` * */ public function clearApplicationHandlers() { $this->client->clearApplicationHandlers(); } }