slim-unit-testing-example icon indicating copy to clipboard operation
slim-unit-testing-example copied to clipboard

Unit Testing Slim - Example PHPUnit route testing and mocking with the Slim Framework dependency injection container.

Results 3 slim-unit-testing-example issues
Sort by recently updated
recently updated
newest added

The [slim-test-helpers](https://github.com/there4/slim-test-helpers) project has just been updated to use Slim v3. This project can now be updated to be show best practice testing for Slim v3.

I ran into a problem today using a custom view that calls \Slim\Slim::getInstance(); There were a few others with the same issue here: https://disqus.com/home/discussion/there4/unit_testing_slim_php_framework_applications_with_phpunit_26/ It just required adding $app->setName('default'); to...

Note: this pulls a dependency on Slim 2.6 since latest https://github.com/there4/slim-test-helpers depends on Slim 2.6.