/** * @expectedException Crew\Unsplash\Exception * @expectedExceptionCode 401 */ public function testFindCurrentUserOnUnconnectedUser() { $connection = new Unsplash\Connection($this->provider); Unsplash\HttpClient::$connection = $connection; VCR::insertCassette('users.yml'); $user = Unsplash\User::current(); VCR::eject(); }