thephpleague / factory-muffin

Enables the rapid creation of objects for testing
https://factory-muffin.thephpleague.com/
MIT License
531 stars 72 forks source link

Laravel 5 with Factory Muffin (~3.0 dev-master) #346

Closed eweap closed 9 years ago

eweap commented 9 years ago

Hello,

I try to combine Factory Muffin with Laravel 5. I have my factories definitions loaded, but when I run my tests, I get an error:

.PHP Fatal error:  Uncaught exception 'Illuminate\Container\BindingResolutionException' with message 'Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable.' in /path-to-project/vendor/laravel/framework/src/Illuminate/Container/Container.php:754

Have you and idea of what can cause this error ? Is it only a Laravel 5 problem or is it related to Factory Muffin? Thanks by advance !

GrahamCampbell commented 9 years ago

Ok, this is definitely a laravel issue, and I've seen it so many times before. Make sure you update your copy of laravel/laravel every day to reflect changes taylor makes, otherwise things will break. Laravel 5 is still a moving target atm.

eweap commented 9 years ago

Thanks for your answer @GrahamCampbell , yeah I've update my laravel/laravel but there is still the issue. I will follow the updates of Laravel 5, until it's compatible with Factory-Muffin !

GrahamCampbell commented 9 years ago

It is comatable. The issue is not caused by factory muffin.