publicfunctiontestAssertRouteSame() { $this->getRequestTester()->assertRouteSame('homepage', ['foo' => 'bar']); $this->expectException(AssertionFailedError::class); $this->expectExceptionMessage('Failed asserting that the Request has attribute "_route" with value "articles".'); $this->getRequestTester()->assertRouteSame('articles'); }