Commit 5a7a491f authored by Fabien Potencier's avatar Fabien Potencier

Merge branch '1.3'

* 1.3:
  updated license year
  Add hint to install browser-kit to use WebTestCase
  fix typo
  fix typo
  fix typo
  [README] Fixed the minimal PHP version
parents 32bed6d4 081257c5
Copyright (c) 2010-2015 Fabien Potencier
Copyright (c) 2010-2016 Fabien Potencier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
......@@ -25,7 +25,7 @@ If you want more flexibility, use Composer_ instead:
Web Server
----------
All examples in the documentation relies on a well-configured web server; read
All examples in the documentation rely on a well-configured web server; read
the :doc:`webserver documentation<web_servers>` to check yours.
Bootstrap
......@@ -459,7 +459,7 @@ the defaults for new controllers.
Error Handlers
--------------
When an exception is thrown, error handlers allows you to display a custom
When an exception is thrown, error handlers allow you to display a custom
error page to the user. They can also be used to do additional things, such as
logging.
......@@ -498,7 +498,7 @@ setting a more specific type hint for the Closure argument::
$app->error(function (\LogicException $e, Request $request, $code) {
// this handler will only handle \LogicException exceptions
// and exceptions that extends \LogicException
// and exceptions that extend \LogicException
});
.. note::
......
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment