Package Data | |
---|---|
Maintainer Username: | ozziest |
Maintainer Contact: | i.ozguradem@gmail.com (Özgür Adem Işıklı) |
Package Create Date: | 2014-08-08 |
Package Last Update: | 2014-08-08 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-23 03:09:27 |
Package Statistics | |
---|---|
Total Downloads: | 10 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Mocket is a simple mock creator for Eloquent Models under Laravel workbench.
To install through composer, simply put the following in your composer.json
file:
{
"require": {
"ozziest/defencers": "dev-master",
}
}
use \Ozziest\Mocker\Eloquent
class SampleTest extends PHPUnit_Framework_TestCase {
public function testSample()
{
$mock = new Eloquent();
$mock = $mock->save(1, 123)->get();
}
}
save
, find
, all
: Simple Eloquent methodsget
: Return mock object