diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php index 0fddd88b03..7062d3983b 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php @@ -95,7 +95,7 @@ class AbstractVoterTest_LegacyVoter extends AbstractVoter { protected function getSupportedClasses() { - return array('AbstractVoterTest_Object'); + return array('stdClass'); } protected function getSupportedAttributes() @@ -113,7 +113,7 @@ class AbstractVoterTest_NothingImplementedVoter extends AbstractVoter { protected function getSupportedClasses() { - return array('AbstractVoterTest_Object'); + return array('stdClass'); } protected function getSupportedAttributes() diff --git a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php deleted file mode 100644 index b49f23f5bb..0000000000 --- a/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/LegacyAbstractVoterTest.php +++ /dev/null @@ -1,42 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; - -use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter; - -class LegacyAbstractVoterTest_Voter extends AbstractVoter -{ - protected function getSupportedClasses() - { - return array('AbstractVoterTest_Object'); - } - - protected function getSupportedAttributes() - { - return array('EDIT', 'CREATE'); - } - - protected function isGranted($attribute, $object, $user = null) - { - return 'EDIT' === $attribute; - } -} - -class LegacyAbstractVoterTest extends AbstractVoterTest -{ - protected function setUp() - { - parent::setUp(); - - $this->voter = new LegacyAbstractVoterTest_Voter(); - } -}