PHPUnit assertions takes the expected value as a first argument, so it should be:

```php
$this->assertSame($request, $requestStack->getCurrentRequest());
```

All other assertions should be modified accordingly.