A code sample.
- Minimum PHP version: 7.1
- Dependencies: only for tests (
Nette\Tester)
Contains:
- Cart - simple shopping cart backend with interfaces (
CartService,CartItem, interfacesIStorageandIProduct) - Example/default implementations of interfaces (
DefaultProduct,DefaultStorage). Used as default product class (DefaultProduct) and in tests (DefaultStorage). - Utils - static utility classes (
ArrayStructureChecker,Percents)
How to run tests in CLI:
- Run
composer installin project root folder. cd testsphp "../vendor/nette/tester/src/tester.php" -c "php.ini" "cases/unit/"