ozziest / mocker
There is no license information available for the latest version (dev-master) of this package.
Simple mock objects for laravel bench packages
dev-master
2014-08-08 13:56 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
- mockery/mockery: dev-master
This package is not auto-updated.
Last update: 2024-11-19 04:54:15 UTC
README
Mocket is a simple mock creator for Eloquent Models under Laravel workbench.
Installation
To install through composer, simply put the following in your composer.json
file:
{ "require": { "ozziest/defencers": "dev-master", } }
Usage
use \Ozziest\Mocker\Eloquent class SampleTest extends PHPUnit_Framework_TestCase { public function testSample() { $mock = new Eloquent(); $mock = $mock->save(1, 123)->get(); } }
Properties
save
,find
,all
: Simple Eloquent methodsget
: Return mock object