summaryrefslogtreecommitdiffstats
path: root/Tests/Http/RememberMe
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-08-19 22:44:13 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2013-08-19 22:44:22 +0200
commit2defac09f53c04202772f442f0612d9664f9b185 (patch)
treeec646668a1474c464651231e94cb9e6d061284cd /Tests/Http/RememberMe
parent3a63ed4527abf2fa9cc1a240cc2947d2317de182 (diff)
downloadsymfony-security-2defac09f53c04202772f442f0612d9664f9b185.zip
symfony-security-2defac09f53c04202772f442f0612d9664f9b185.tar.gz
symfony-security-2defac09f53c04202772f442f0612d9664f9b185.tar.bz2
removed deps checks in unit tests
As Composer is now widely used in the PHP world, having to run composer install before running the test suite is expected. This also has the nice benefit of removing a bunch of code, making things easier to maintain (there is only one place to declare a dev dependency), and probably more.
Diffstat (limited to 'Tests/Http/RememberMe')
-rw-r--r--Tests/Http/RememberMe/AbstractRememberMeServicesTest.php7
-rw-r--r--Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php7
-rw-r--r--Tests/Http/RememberMe/ResponseListenerTest.php7
-rw-r--r--Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php7
4 files changed, 0 insertions, 28 deletions
diff --git a/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php b/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php
index 8571686..20ac195 100644
--- a/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php
+++ b/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php
@@ -17,13 +17,6 @@ use Symfony\Component\HttpFoundation\Response;
class AbstractRememberMeServicesTest extends \PHPUnit_Framework_TestCase
{
- protected function setUp()
- {
- if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
- $this->markTestSkipped('The "HttpFoundation" component is not available');
- }
- }
-
public function testGetRememberMeParameter()
{
$service = $this->getService(null, array('remember_me_parameter' => 'foo'));
diff --git a/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php b/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php
index 7fc3021..8978725 100644
--- a/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php
+++ b/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php
@@ -26,13 +26,6 @@ use Symfony\Component\Security\Core\Util\SecureRandom;
class PersistentTokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase
{
- protected function setUp()
- {
- if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
- $this->markTestSkipped('The "HttpFoundation" component is not available');
- }
- }
-
public function testAutoLoginReturnsNullWhenNoCookie()
{
$service = $this->getService(null, array('name' => 'foo'));
diff --git a/Tests/Http/RememberMe/ResponseListenerTest.php b/Tests/Http/RememberMe/ResponseListenerTest.php
index cbd3f1f..492206a 100644
--- a/Tests/Http/RememberMe/ResponseListenerTest.php
+++ b/Tests/Http/RememberMe/ResponseListenerTest.php
@@ -19,13 +19,6 @@ use Symfony\Component\HttpKernel\KernelEvents;
class ResponseListenerTest extends \PHPUnit_Framework_TestCase
{
- protected function setUp()
- {
- if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
- $this->markTestSkipped('The "HttpFoundation" component is not available');
- }
- }
-
public function testRememberMeCookieIsSentWithResponse()
{
$cookie = new Cookie('rememberme');
diff --git a/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php b/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php
index 6de69f1..7856038 100644
--- a/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php
+++ b/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php
@@ -23,13 +23,6 @@ use Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices;
class TokenBasedRememberMeServicesTest extends \PHPUnit_Framework_TestCase
{
- protected function setUp()
- {
- if (!class_exists('Symfony\Component\HttpFoundation\Request')) {
- $this->markTestSkipped('The "HttpFoundation" component is not available');
- }
- }
-
public function testAutoLoginReturnsNullWhenNoCookie()
{
$service = $this->getService(null, array('name' => 'foo'));