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
3dd1b157
Commit
3dd1b157
authored
Oct 01, 2015
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed validator test
parent
217d29aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
+3
-1
No files found.
tests/Silex/Tests/Provider/ValidatorServiceProviderTest.php
View file @
3dd1b157
...
...
@@ -19,6 +19,8 @@ use Symfony\Component\Translation\Exception\NotFoundResourceException;
use
Symfony\Component\Validator\Constraints
as
Assert
;
use
Silex\Tests\Provider\ValidatorServiceProviderTest\Constraint\Custom
;
use
Silex\Tests\Provider\ValidatorServiceProviderTest\Constraint\CustomValidator
;
use
Symfony\Component\Validator\ValidatorInterface
as
LegacyValidatorInterface
;
use
Symfony\Component\Validator\Validator\ValidatorInterface
;
/**
* ValidatorServiceProvider.
...
...
@@ -83,7 +85,7 @@ class ValidatorServiceProviderTest extends \PHPUnit_Framework_TestCase
*/
public
function
testValidatorServiceIsAValidator
(
$app
)
{
$this
->
assert
InstanceOf
(
'Symfony\Component\Validator\ValidatorInterface'
,
$app
[
'validator'
]
);
$this
->
assert
True
(
$app
[
'validator'
]
instanceof
ValidatorInterface
||
$app
[
'validator'
]
instanceof
LegacyValidatorInterface
);
}
/**
...
...
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