From cd2155c90316647b7a7250d99159f50f877d2143 Mon Sep 17 00:00:00 2001 From: Dinduks Date: Fri, 15 Jun 2012 22:16:41 +0200 Subject: [PATCH] Add doc for the PR #4585 --- book/testing.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/testing.rst b/book/testing.rst index d87433cb329..f974fb6c272 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -279,6 +279,8 @@ document:: // Assert that the response is a redirect to /demo/contact $this->assertTrue($client->getResponse()->isRedirect('/demo/contact')); + // Assert that the response is a redirect to a URL that ends with /contact (using regular expressions) + $this->assertTrue($client->getResponse()->isRedirect('/\/contact$/')); // or simply check that the response is a redirect to any URL $this->assertTrue($client->getResponse()->isRedirect());