vendor/symfony/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticationCommencingTest.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/symfony/src/Symfony/Bundle/SecurityBundle/Tests/Functional/AuthenticationCommencingTest.php Sat Sep 24 15:40:41 2011 +0200
@@ -0,0 +1,15 @@
+<?php
+
+namespace Symfony\Bundle\SecurityBundle\Tests\Functional;
+
+class AuthenticationCommencingTest extends WebTestCase
+{
+ public function testAuthenticationIsCommencingIfAccessDeniedExceptionIsWrapped()
+ {
+ $client = $this->createClient(array('test_case' => 'StandardFormLogin', 'root_config' => 'config.yml'));
+ $client->insulate();
+
+ $client->request('GET', '/secure-but-not-covered-by-access-control');
+ $this->assertRedirect($client->getResponse(), '/login');
+ }
+}