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

This package is not auto-updated.

Last update: 2024-12-17 05:12:28 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 methods
  • get: Return mock object

Licence

MIT