ozziest / mocker by ozziest

Simple mock objects for laravel bench packages
10
0
3
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

Mocker

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