private function stubTokenStorage($token) { $this->tokenStorage->expects($this->any())->method('getToken')->willReturn($token); }