I've resolved this, apparently the backslash before namespaces were what was causing it, eg before I had:
$this->mockProvider = Mockery::mock('\Depotwarehouse\OAuth2\Client\Provider\BattleNet');
$this->app->instance('\Depotwarehouse\OAuth2\Client\Provider\BattleNet', $this->mockProvider);
where what I needed to have was:
$this->mockProvider = Mockery::mock('Depotwarehouse\OAuth2\Client\Provider\BattleNet');
$this->app->instance('Depotwarehouse\OAuth2\Client\Provider\BattleNet', $this->mockProvider);
Lesson learned!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community