create(); // When I get the extra info Lastfm::shouldReceive('getArtistInfo') ->once() ->with($artist->name) ->andReturn(['foo' => 'bar']); $info = $artist->getInfo(); // Then I receive the extra info $this->assertEquals(['foo' => 'bar'], $info); } }