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
4bae5c85
Commit
4bae5c85
authored
Sep 10, 2016
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed usage of obsolete PHPUnit method
parent
40577f93
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tests/Silex/Tests/LazyRequestMatcherTest.php
tests/Silex/Tests/LazyRequestMatcherTest.php
+2
-2
tests/Silex/Tests/Provider/FormServiceProviderTest.php
tests/Silex/Tests/Provider/FormServiceProviderTest.php
+1
-1
No files found.
tests/Silex/Tests/LazyRequestMatcherTest.php
View file @
4bae5c85
...
...
@@ -27,7 +27,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase
public
function
testUserMatcherIsCreatedLazily
()
{
$callCounter
=
0
;
$requestMatcher
=
$this
->
getMock
(
'Symfony\Component\Routing\Matcher\RequestMatcherInterface'
);
$requestMatcher
=
$this
->
getMock
Builder
(
'Symfony\Component\Routing\Matcher\RequestMatcherInterface'
)
->
getMock
(
);
$matcher
=
new
LazyRequestMatcher
(
function
()
use
(
$requestMatcher
,
&
$callCounter
)
{
++
$callCounter
;
...
...
@@ -61,7 +61,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase
public
function
testMatchIsProxy
()
{
$request
=
Request
::
create
(
'path'
);
$matcher
=
$this
->
getMock
(
'Symfony\Component\Routing\Matcher\RequestMatcherInterface'
);
$matcher
=
$this
->
getMock
Builder
(
'Symfony\Component\Routing\Matcher\RequestMatcherInterface'
)
->
getMock
(
);
$matcher
->
expects
(
$this
->
once
())
->
method
(
'matchRequest'
)
->
with
(
$request
)
...
...
tests/Silex/Tests/Provider/FormServiceProviderTest.php
View file @
4bae5c85
...
...
@@ -230,7 +230,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
$app
[
'locale'
]
=
'de'
;
$app
[
'csrf.token_manager'
]
=
function
()
{
return
$this
->
getMock
(
'Symfony\Component\Security\Csrf\CsrfTokenManagerInterface'
);
return
$this
->
getMock
Builder
(
'Symfony\Component\Security\Csrf\CsrfTokenManagerInterface'
)
->
getMock
(
);
};
$form
=
$app
[
'form.factory'
]
->
createBuilder
(
'Symfony\Component\Form\Extension\Core\Type\FormType'
,
array
())
...
...
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