publicfunctiontestAssertBrowserCookieValueSame() { $this->getClientTester()->assertBrowserCookieValueSame('foo', 'bar', false, '/path'); $this->expectException(AssertionFailedError::class); $this->expectExceptionMessage('has cookie "foo" with path "/path" and has cookie "foo" with path "/path" with value "babar".'); $this->getClientTester()->assertBrowserCookieValueSame('foo', 'babar', false, '/path'); }