Did you changed also the expectations on your mock?

```php
$service->expects($this->any())
  ->method('request')
 ->with(GitHub::REQUEST_EMAIL, 'GET', array(), array('Accept' => 'application/vnd.github.v3'))
  ->will($this->returnValue($returnValue));
```