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
b447ec3b
Commit
b447ec3b
authored
Feb 25, 2018
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed risky tests
parent
43e4cf29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
tests/Silex/Tests/ControllerCollectionTest.php
tests/Silex/Tests/ControllerCollectionTest.php
+4
-0
tests/Silex/Tests/Provider/FormServiceProviderTest.php
tests/Silex/Tests/Provider/FormServiceProviderTest.php
+1
-0
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
+5
-0
No files found.
tests/Silex/Tests/ControllerCollectionTest.php
View file @
b447ec3b
...
...
@@ -58,11 +58,15 @@ class ControllerCollectionTest extends TestCase
}
catch
(
ControllerFrozenException
$e
)
{
}
$this
->
addToAssertionCount
(
1
);
try
{
$barController
->
bind
(
'bar2'
);
$this
->
fail
();
}
catch
(
ControllerFrozenException
$e
)
{
}
$this
->
addToAssertionCount
(
1
);
}
public
function
testConflictingRouteNames
()
...
...
tests/Silex/Tests/Provider/FormServiceProviderTest.php
View file @
b447ec3b
...
...
@@ -275,6 +275,7 @@ class FormServiceProviderTest extends TestCase
try
{
$translator
->
trans
(
'test'
);
$this
->
addToAssertionCount
(
1
);
}
catch
(
NotFoundResourceException
$e
)
{
$this
->
fail
(
'Form factory should not add a translation resource that does not exist'
);
}
...
...
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
View file @
b447ec3b
...
...
@@ -36,6 +36,8 @@ class ValidatorServiceProviderTest extends TestCase
$app
->
register
(
new
ValidatorServiceProvider
());
$app
->
register
(
new
FormServiceProvider
());
$this
->
assertInstanceOf
(
'Symfony\Component\Validator\Validator\ValidatorInterface'
,
$app
[
'validator'
]);
return
$app
;
}
...
...
@@ -53,6 +55,8 @@ class ValidatorServiceProviderTest extends TestCase
),
));
$this
->
assertInstanceOf
(
'Symfony\Component\Validator\Validator\ValidatorInterface'
,
$app
[
'validator'
]);
return
$app
;
}
...
...
@@ -130,6 +134,7 @@ class ValidatorServiceProviderTest extends TestCase
try
{
$translator
->
trans
(
'test'
);
$this
->
addToAssertionCount
(
1
);
}
catch
(
NotFoundResourceException
$e
)
{
$this
->
fail
(
'Validator should not add a translation resource that does not exist'
);
}
...
...
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