rrylee
9/27/2015 - 4:39 AM

测试IoC 使用Mockery

测试IoC 使用Mockery

public function setUp()
{
  parent::setUp();
  
  $this->task = Mockery::mock('Acme\TaskReponsitoryInterface');
  App::instance('Acme\TaskReponsitoryInterface', $this->task);
}