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
633cd437
Commit
633cd437
authored
Dec 14, 2015
by
Jérôme Tamarelle
Committed by
Jerome TAMARELLE
Dec 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hint to install browser-kit to use WebTestCase
Refs #1293
parent
bf071d40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/Silex/WebTestCase.php
src/Silex/WebTestCase.php
+4
-0
No files found.
src/Silex/WebTestCase.php
View file @
633cd437
...
...
@@ -55,6 +55,10 @@ abstract class WebTestCase extends \PHPUnit_Framework_TestCase
*/
public
function
createClient
(
array
$server
=
array
())
{
if
(
!
class_exists
(
'Symfony\Component\BrowserKit\Client'
))
{
throw
new
\LogicException
(
'Component "symfony/browser-kit" is required by WebTestCase.'
.
PHP_EOL
.
'Run composer require symfony/browser-kit'
);
}
return
new
Client
(
$this
->
app
,
$server
);
}
}
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