PHP code example of rezzza / mock-extension
1. Go to this page and download the library: Download rezzza/mock-extension library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rezzza / mock-extension example snippets
protected function getContainerBaseClass()
{
if ('test' == $this->environment) {
return 'Rezzza\MockExtension\MockContainer';
}
return parent::getContainerBaseClass();
}
use Rezzza\MockExtension\Adapter\AtoumAdapter;
$mockGoutte = $this->mocker->mockService(
'my.goutte_client',
new AtoumAdapter('\Behat\Mink\Driver\Goutte\Client')
);