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