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
70fff6bd
Commit
70fff6bd
authored
Jun 24, 2015
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed CS
parent
03705ed2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
tests/Silex/Tests/ApplicationTest.php
tests/Silex/Tests/ApplicationTest.php
+2
-2
tests/Silex/Tests/Provider/FormServiceProviderTest.php
tests/Silex/Tests/Provider/FormServiceProviderTest.php
+2
-2
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
+1
-1
No files found.
tests/Silex/Tests/ApplicationTest.php
View file @
70fff6bd
...
@@ -519,9 +519,9 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
...
@@ -519,9 +519,9 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
public
function
testBeforeFilterOnMountedControllerGroupIsolatedToGroup
()
public
function
testBeforeFilterOnMountedControllerGroupIsolatedToGroup
()
{
{
$app
=
new
Application
();
$app
=
new
Application
();
$app
->
match
(
'/'
,
function
()
{
return
new
Response
(
'ok'
);
});
$app
->
match
(
'/'
,
function
()
{
return
new
Response
(
'ok'
);
});
$mounted
=
$app
[
'controllers_factory'
];
$mounted
=
$app
[
'controllers_factory'
];
$mounted
->
before
(
function
()
{
return
new
Response
(
'not ok'
);
});
$mounted
->
before
(
function
()
{
return
new
Response
(
'not ok'
);
});
$app
->
mount
(
'/group'
,
$mounted
);
$app
->
mount
(
'/group'
,
$mounted
);
$response
=
$app
->
handle
(
Request
::
create
(
'/'
));
$response
=
$app
->
handle
(
Request
::
create
(
'/'
));
...
...
tests/Silex/Tests/Provider/FormServiceProviderTest.php
View file @
70fff6bd
...
@@ -59,7 +59,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
...
@@ -59,7 +59,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
$app
->
register
(
new
FormServiceProvider
());
$app
->
register
(
new
FormServiceProvider
());
$app
->
extend
(
'form.type.extensions'
,
function
(
$extensions
)
{
$app
->
extend
(
'form.type.extensions'
,
function
(
$extensions
)
{
$extensions
[]
=
new
DummyFormTypeExtension
();
$extensions
[]
=
new
DummyFormTypeExtension
();
return
$extensions
;
return
$extensions
;
...
@@ -78,7 +78,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
...
@@ -78,7 +78,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
$app
->
register
(
new
FormServiceProvider
());
$app
->
register
(
new
FormServiceProvider
());
$app
->
extend
(
'form.type.guessers'
,
function
(
$guessers
)
{
$app
->
extend
(
'form.type.guessers'
,
function
(
$guessers
)
{
$guessers
[]
=
new
FormTypeGuesserChain
(
array
());
$guessers
[]
=
new
FormTypeGuesserChain
(
array
());
return
$guessers
;
return
$guessers
;
...
...
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
View file @
70fff6bd
...
@@ -40,7 +40,7 @@ class ValidatorServiceProviderTest extends \PHPUnit_Framework_TestCase
...
@@ -40,7 +40,7 @@ class ValidatorServiceProviderTest extends \PHPUnit_Framework_TestCase
{
{
$app
=
new
Application
();
$app
=
new
Application
();
$app
[
'custom.validator'
]
=
function
()
{
$app
[
'custom.validator'
]
=
function
()
{
return
new
CustomValidator
();
return
new
CustomValidator
();
};
};
...
...
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