feat(mock): adds work in progress

This commit is contained in:
Nuno Maduro
2021-04-10 21:11:57 +01:00
parent 3205b571b0
commit c9f723530d
7 changed files with 134 additions and 18 deletions

View File

@ -63,6 +63,7 @@
✓ it allows to call underlying protected/private methods
✓ it throws error if method do not exist
✓ it can forward unexpected calls to any global function
✓ it can use helpers from helpers file
PASS Tests\Features\HigherOrderTests
✓ it proxies calls to object
@ -77,7 +78,8 @@
✓ it will throw exception from call if no macro exists
PASS Tests\Features\Mocks
✓ it has bar
✓ it can mock methods
✓ access to the mock object
PASS Tests\Features\PendingHigherOrderTests
✓ get 'foo' → get 'bar' → expect true → toBeTrue
@ -221,5 +223,9 @@
✓ it is a test
✓ it uses correct parent class
<<<<<<< HEAD
Tests: 7 skipped, 119 passed
=======
Tests: 7 skipped, 117 passed
>>>>>>> feat(mock): adds work in progress