Skip to content

Commit

Permalink
Fix typos in the readme (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen authored Apr 23, 2021
1 parent 8481d08 commit 58d222d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class MyTest extends WebTestCase

// For only the next call to $apiClient->delete()
ServiceMock::next($apiClient, 'delete', function () {
return true
return true;
});

// This will queue a new callable for $apiClient->delete()
Expand Down Expand Up @@ -100,13 +100,13 @@ class MyTest extends WebTestCase
So how is this magic working?

When the container is built a new proxy class is generated from your service definition.
The proxy class acts and behaves just as the original. But on each method call if
The proxy class acts and behaves just as the original. But on each method call it
checks the `ProxyDefinition` if a custom behavior have been added.

With help from static properties, the `ProxyDefinition` will be remembered even if
the Kernel is rebooted.

## Limitations

This trick will not work if you have two different PHP processes, ie you are running
This trick will not work if you have two different PHP processes, i.e. you are running
your tests with Panther, Selenium etc.

0 comments on commit 58d222d

Please sign in to comment.