Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8188653

Browse filesBrowse files
committed
move test methods to test case class
1 parent 505bf4d commit 8188653
Copy full SHA for 8188653

File tree

Expand file treeCollapse file tree

1 file changed

+28
-28
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+28
-28
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTest.php
+28-28Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -181,34 +181,6 @@ public function testIsCsrfTokenValid()
181181

182182
$this->assertTrue($controller->isCsrfTokenValid('foo', 'bar'));
183183
}
184-
}
185-
186-
class TestController extends Controller
187-
{
188-
public function forward($controller, array $path = array(), array $query = array())
189-
{
190-
return parent::forward($controller, $path, $query);
191-
}
192-
193-
public function getUser()
194-
{
195-
return parent::getUser();
196-
}
197-
198-
public function redirectToRoute($route, array $parameters = array(), $status = 302)
199-
{
200-
return parent::redirectToRoute($route, $parameters, $status);
201-
}
202-
203-
public function addFlash($type, $message)
204-
{
205-
parent::addFlash($type, $message);
206-
}
207-
208-
public function isCsrfTokenValid($id, $token)
209-
{
210-
return parent::isCsrfTokenValid($id, $token);
211-
}
212184

213185
public function testGenerateUrl()
214186
{
@@ -328,3 +300,31 @@ public function testGetDoctrine()
328300
$this->assertEquals($doctrine, $controller->getDoctrine());
329301
}
330302
}
303+
304+
class TestController extends Controller
305+
{
306+
public function forward($controller, array $path = array(), array $query = array())
307+
{
308+
return parent::forward($controller, $path, $query);
309+
}
310+
311+
public function getUser()
312+
{
313+
return parent::getUser();
314+
}
315+
316+
public function redirectToRoute($route, array $parameters = array(), $status = 302)
317+
{
318+
return parent::redirectToRoute($route, $parameters, $status);
319+
}
320+
321+
public function addFlash($type, $message)
322+
{
323+
parent::addFlash($type, $message);
324+
}
325+
326+
public function isCsrfTokenValid($id, $token)
327+
{
328+
return parent::isCsrfTokenValid($id, $token);
329+
}
330+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.