Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
60baeadc
Commit
60baeadc
authored
Sep 16, 2013
by
Daniel Tschinder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused imports and fix docblock for exceptions
parent
69756f95
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
tests/Silex/Tests/ApplicationTest.php
tests/Silex/Tests/ApplicationTest.php
+4
-5
tests/Silex/Tests/RouterTest.php
tests/Silex/Tests/RouterTest.php
+1
-2
tests/Silex/Tests/StreamTest.php
tests/Silex/Tests/StreamTest.php
+0
-1
No files found.
tests/Silex/Tests/ApplicationTest.php
View file @
60baeadc
...
@@ -20,7 +20,6 @@ use Symfony\Component\HttpFoundation\Request;
...
@@ -20,7 +20,6 @@ use Symfony\Component\HttpFoundation\Request;
use
Symfony\Component\HttpKernel\Exception\HttpException
;
use
Symfony\Component\HttpKernel\Exception\HttpException
;
use
Symfony\Component\Debug\ErrorHandler
;
use
Symfony\Component\Debug\ErrorHandler
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\HttpFoundation\StreamedResponse
;
use
Symfony\Component\HttpFoundation\StreamedResponse
;
use
Symfony\Component\HttpKernel\HttpKernelInterface
;
use
Symfony\Component\HttpKernel\HttpKernelInterface
;
use
Symfony\Component\EventDispatcher\Event
;
use
Symfony\Component\EventDispatcher\Event
;
...
@@ -378,7 +377,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
...
@@ -378,7 +377,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
}
}
/**
/**
* @expectedException RuntimeException
* @expectedException
\
RuntimeException
*/
*/
public
function
testNonResponseAndNonNullReturnFromRouteBeforeMiddlewareShouldThrowRuntimeException
()
public
function
testNonResponseAndNonNullReturnFromRouteBeforeMiddlewareShouldThrowRuntimeException
()
{
{
...
@@ -397,7 +396,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
...
@@ -397,7 +396,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
}
}
/**
/**
* @expectedException RuntimeException
* @expectedException
\
RuntimeException
*/
*/
public
function
testNonResponseAndNonNullReturnFromRouteAfterMiddlewareShouldThrowRuntimeException
()
public
function
testNonResponseAndNonNullReturnFromRouteAfterMiddlewareShouldThrowRuntimeException
()
{
{
...
@@ -416,7 +415,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
...
@@ -416,7 +415,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
}
}
/**
/**
* @expectedException RuntimeException
* @expectedException
\
RuntimeException
*/
*/
public
function
testAccessingRequestOutsideOfScopeShouldThrowRuntimeException
()
public
function
testAccessingRequestOutsideOfScopeShouldThrowRuntimeException
()
{
{
...
@@ -426,7 +425,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
...
@@ -426,7 +425,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
}
}
/**
/**
* @expectedException RuntimeException
* @expectedException
\
RuntimeException
*/
*/
public
function
testAccessingRequestOutsideOfScopeShouldThrowRuntimeExceptionAfterHandling
()
public
function
testAccessingRequestOutsideOfScopeShouldThrowRuntimeExceptionAfterHandling
()
{
{
...
...
tests/Silex/Tests/RouterTest.php
View file @
60baeadc
...
@@ -16,7 +16,6 @@ use Silex\Application;
...
@@ -16,7 +16,6 @@ use Silex\Application;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\Response
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
use
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
;
/**
/**
* Router test cases.
* Router test cases.
...
@@ -97,7 +96,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
...
@@ -97,7 +96,7 @@ class RouterTest extends \PHPUnit_Framework_TestCase
}
}
/**
/**
* @expectedException Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* @expectedException
\
Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
*/
public
function
testMissingRoute
()
public
function
testMissingRoute
()
{
{
...
...
tests/Silex/Tests/StreamTest.php
View file @
60baeadc
...
@@ -14,7 +14,6 @@ namespace Silex\Tests;
...
@@ -14,7 +14,6 @@ namespace Silex\Tests;
use
Silex\Application
;
use
Silex\Application
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\StreamedResponse
;
/**
/**
* Stream test cases.
* Stream test cases.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment