Documentation is here:
https://github.com/koenhoeymans/Fjor/bl ... /index.txt
Or, maybe easier, the end-to-end tests:
https://github.com/koenhoeymans/Fjor/bl ... ocTest.php
An example from these tests. Suppose you have a class that asks for an object implementing ArrayAccess, you can tell Fjor to use an instance of SplObjectStorage, and use the same instance every time it is needed:
Code: Select all
$fjor->given('ArrayAccess')->thenUse('SplObjectStorage')->inSingletonScope();