From 59cab272e1e6a037b0669c1c1afef951b9d84856 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Fri, 27 Mar 2015 22:21:56 +0100 Subject: [PATCH] remove useless tests that fail in php 7 --- .../Extension/Core/Type/ChoiceTypeTest.php | 10 ---------- .../Token/RememberMeTokenTest.php | 17 ----------------- 2 files changed, 27 deletions(-) diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php index 895661ee4f..9e4ecd4552 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php @@ -66,16 +66,6 @@ class ChoiceTypeTest extends \Symfony\Component\Form\Test\TypeTestCase $this->objectChoices = null; } - /** - * @expectedException \PHPUnit_Framework_Error - */ - public function testChoicesOptionExpectsArray() - { - $this->factory->create('choice', null, array( - 'choices' => new \ArrayObject(), - )); - } - /** * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException */ diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememberMeTokenTest.php b/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememberMeTokenTest.php index cef3d285c1..438c1d95d5 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememberMeTokenTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememberMeTokenTest.php @@ -52,23 +52,6 @@ class RememberMeTokenTest extends \PHPUnit_Framework_TestCase ); } - /** - * @expectedException \PHPUnit_Framework_Error - * @dataProvider getUserArguments - */ - public function testConstructorUserCannotBeNull($user) - { - new RememberMeToken($user, 'foo', 'foo'); - } - - public function getUserArguments() - { - return array( - array(null), - array('foo'), - ); - } - protected function getUser($roles = array('ROLE_FOO')) { $user = $this->getMock('Symfony\Component\Security\Core\User\UserInterface');