Skip to content

Commit

Permalink
updatae readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Oct 8, 2024
1 parent 46de1dc commit fba2599
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ use Symfony\Config\HappyrServiceMockingConfig;

return static function (HappyrServiceMockingConfig $config) {
$config->services([
\App\AcmeApiClient::class
\App\Some\OtherService::class
\App\AcmeApiClient::class,
\App\Some\OtherService::class,
]);
};

Expand Down Expand Up @@ -88,8 +88,6 @@ class MyTest extends WebTestCase
// ...

$apiClient = self::getContainer()->get(AcmeApiClient::class);
// On Symfony < 5.3
// $apiClient = self::$container->get(AcmeApiClient::class);

// For all calls to $apiClient->show()
ServiceMock::all($apiClient, 'show', function ($id) {
Expand Down

0 comments on commit fba2599

Please sign in to comment.