I'm trying to test a Laravel api. When I try to create a partial mock with the Eloquent Model fill method, phpunit throws an error.
Code
$mock = m::mock('Illuminate\Database\Eloquent\Model[fill]');
Error
BadMethodCallException: Method Mockery_13_Illuminate_Database_Eloquent_Model::fill() does not exist on this mock object
I really don't know if this either a Eloquent bug, or a Mockery error.
Links
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire