diff --git a/src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php b/src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php index 230fd92e4049..ce2e821f46f1 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php @@ -54,7 +54,7 @@ public function testExists() } /** - * @expectedException Twig_Error_Loader + * @expectedException \Twig_Error_Loader */ public function testTwigErrorIfLocatorThrowsInvalid() { @@ -78,7 +78,7 @@ public function testTwigErrorIfLocatorThrowsInvalid() } /** - * @expectedException Twig_Error_Loader + * @expectedException \Twig_Error_Loader */ public function testTwigErrorIfLocatorReturnsFalse() { diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php index dfa51e37fed1..7b71854da381 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php @@ -189,7 +189,7 @@ public function getFixNamespaceDeclarationsDataWithoutTokenizer() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testUnableToLoadClassException() { diff --git a/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php b/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php index 6d241cad5725..3dc118a1cc6e 100644 --- a/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php +++ b/src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php @@ -25,7 +25,7 @@ public function testNormalizeThrowsExceptionWhenFalseIsNotAllowed() } /** - * @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException + * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException * @expectedExceptionMessage Unrecognized options "foo" under "root" */ public function testExceptionThrownOnUnrecognizedChild() diff --git a/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php b/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php index 05ea772a7f2d..e938a4b07177 100644 --- a/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php +++ b/src/Symfony/Component/Config/Tests/Loader/LoaderTest.php @@ -43,7 +43,7 @@ public function testResolve() } /** - * @expectedException Symfony\Component\Config\Exception\FileLoaderLoadException + * @expectedException \Symfony\Component\Config\Exception\FileLoaderLoadException */ public function testResolveWhenResolverCannotFindLoader() { diff --git a/src/Symfony/Component/Console/Tests/Command/CommandTest.php b/src/Symfony/Component/Console/Tests/Command/CommandTest.php index 885afed38249..0b444318e72c 100644 --- a/src/Symfony/Component/Console/Tests/Command/CommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/CommandTest.php @@ -288,7 +288,7 @@ public function testSetCodeWithNonClosureCallable() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage Invalid callable provided to Command::setCode. */ public function testSetCodeWithNonCallable() diff --git a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php index e99ebc577821..774df268ba12 100644 --- a/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php +++ b/src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php @@ -59,7 +59,7 @@ public function testPopNotLast() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testInvalidPop() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php index bfd92798dc4c..952a9280efcb 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php @@ -410,7 +410,7 @@ public function testMerge() /** * @covers Symfony\Component\DependencyInjection\ContainerBuilder::merge - * @expectedException LogicException + * @expectedException \LogicException */ public function testMergeLogicException() { @@ -537,7 +537,7 @@ public function testPrivateServiceUser() } /** - * @expectedException BadMethodCallException + * @expectedException \BadMethodCallException */ public function testThrowsExceptionWhenSetServiceOnAFrozenContainer() { @@ -549,7 +549,7 @@ public function testThrowsExceptionWhenSetServiceOnAFrozenContainer() } /** - * @expectedException BadMethodCallException + * @expectedException \BadMethodCallException */ public function testThrowsExceptionWhenAddServiceOnAFrozenContainer() { @@ -578,7 +578,7 @@ public function testNoExceptionWhenSetSyntheticServiceOnAFrozenContainer() } /** - * @expectedException BadMethodCallException + * @expectedException \BadMethodCallException */ public function testThrowsExceptionWhenSetDefinitionOnAFrozenContainer() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php b/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php index bf1bab1e298e..9ae459941723 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/DefinitionDecoratorTest.php @@ -71,7 +71,7 @@ public function testSetArgument() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testReplaceArgumentShouldRequireIntegerIndex() { @@ -96,7 +96,7 @@ public function testReplaceArgument() } /** - * @expectedException OutOfBoundsException + * @expectedException \OutOfBoundsException */ public function testGetArgumentShouldCheckBounds() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php b/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php index 89f7ae1ea0ad..b81e3ca9c568 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php @@ -251,7 +251,7 @@ public function testSetArgument() } /** - * @expectedException OutOfBoundsException + * @expectedException \OutOfBoundsException */ public function testGetArgumentShouldCheckBounds() { @@ -262,7 +262,7 @@ public function testGetArgumentShouldCheckBounds() } /** - * @expectedException OutOfBoundsException + * @expectedException \OutOfBoundsException */ public function testReplaceArgumentShouldCheckBounds() { diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php index 44043268d38c..947d6c2d5f52 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php @@ -81,7 +81,7 @@ public function testDumpOptimizationString() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testExportParameters() { @@ -121,7 +121,7 @@ public function testAddService() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @expectedExceptionMessage Service id "bar$" cannot be converted to a valid PHP method name. */ public function testAddServiceInvalidServiceId() diff --git a/src/Symfony/Component/Form/Tests/FormFactoryTest.php b/src/Symfony/Component/Form/Tests/FormFactoryTest.php index aa43310850ef..8e5f340a0f85 100644 --- a/src/Symfony/Component/Form/Tests/FormFactoryTest.php +++ b/src/Symfony/Component/Form/Tests/FormFactoryTest.php @@ -278,7 +278,7 @@ public function testCreateNamedBuilderDoesNotOverrideExistingDataOption() } /** - * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException + * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException * @expectedExceptionMessage Expected argument of type "string, Symfony\Component\Form\ResolvedFormTypeInterface or Symfony\Component\Form\FormTypeInterface", "stdClass" given */ public function testCreateNamedBuilderThrowsUnderstandableException() diff --git a/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php b/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php index 2a3e8089097e..f39c9e9448f2 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/CookieTest.php @@ -38,7 +38,7 @@ public function invalidNames() /** * @dataProvider invalidNames - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException * @covers Symfony\Component\HttpFoundation\Cookie::__construct */ public function testInstantiationThrowsExceptionIfCookieNameContainsInvalidCharacters($name) @@ -47,7 +47,7 @@ public function testInstantiationThrowsExceptionIfCookieNameContainsInvalidChara } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testInvalidExpiration() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php index 20ad1471aa5c..5a78c6e31bba 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/RequestTest.php @@ -749,7 +749,7 @@ public function testGetPort() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testGetHostWithFakeHttpHostValue() { @@ -879,7 +879,7 @@ public function testGetContentReturnsResource() } /** - * @expectedException LogicException + * @expectedException \LogicException * @dataProvider getContentCantBeCalledTwiceWithResourcesProvider */ public function testGetContentCantBeCalledTwiceWithResources($first, $second) diff --git a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php index 3a084954c443..2f48ed85c316 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php @@ -634,7 +634,7 @@ public function testSetContent($content) } /** - * @expectedException UnexpectedValueException + * @expectedException \UnexpectedValueException * @dataProvider invalidContentProvider */ public function testSetContentInvalid($content) diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php index 1cfd1175cbe1..885d558f2765 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php @@ -49,7 +49,7 @@ protected function setUp() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testConstructorShouldThrowExceptionForInvalidMongo() { @@ -57,7 +57,7 @@ public function testConstructorShouldThrowExceptionForInvalidMongo() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testConstructorShouldThrowExceptionForMissingOptions() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php index 2a6f6bb7e8fe..c56ea4a60071 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php @@ -97,7 +97,7 @@ public function testGetId() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testUnstartedSave() { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php index d42c62a25ca0..329c090d8d91 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php @@ -107,7 +107,7 @@ public function testMultipleInstances() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testSaveWithoutStart() { diff --git a/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php b/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php index e0a5b0ad5934..1b3fe3745b10 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php @@ -34,7 +34,7 @@ public function testRenderWhenRendererDoesNotExist() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testRenderWithUnknownRenderer() { @@ -44,7 +44,7 @@ public function testRenderWithUnknownRenderer() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException * @expectedExceptionMessage Error when rendering "http://localhost/" (Status code is 404). */ public function testDeliverWithUnsuccessfulResponse() diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php index 7180da1ff3b7..328f855cd308 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php @@ -133,7 +133,7 @@ public function testProcessEscapesPhpTags() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testProcessWhenNoSrcInAnEsi() { @@ -173,7 +173,7 @@ public function testHandle() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testHandleWhenResponseIsNot200() { diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php index 367e3e2d41d6..30e253d40b9d 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php @@ -35,7 +35,7 @@ protected function setUp() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testHandleWhenControllerThrowsAnExceptionAndRawIsTrue() { @@ -45,7 +45,7 @@ public function testHandleWhenControllerThrowsAnExceptionAndRawIsTrue() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testHandleWhenControllerThrowsAnExceptionAndRawIsFalseAndNoListenerIsRegistered() { @@ -147,7 +147,7 @@ public function testHandleWhenNoControllerIsFound() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testHandleWhenTheControllerIsNotACallable() { @@ -199,7 +199,7 @@ public function testHandleWhenTheControllerIsAStaticArray() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testHandleWhenTheControllerDoesNotReturnAResponse() { diff --git a/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php b/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php index e9c1e0f94a1e..d6c5f53f77be 100644 --- a/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php +++ b/src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php @@ -17,7 +17,7 @@ class StubLocaleTest extends LocaleTestCase { /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testGetDisplayCountriesWithUnsupportedLocale() { @@ -37,7 +37,7 @@ public function testGetCountries() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testGetDisplayLanguagesWithUnsupportedLocale() { @@ -57,7 +57,7 @@ public function testGetLanguages() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testGetCurrenciesDataWithUnsupportedLocale() { @@ -92,7 +92,7 @@ public function testGetCurrencies() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testGetDisplayLocalesWithUnsupportedLocale() { diff --git a/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php b/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php index dfef6c17d5f8..36cfc83f00b6 100644 --- a/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php +++ b/src/Symfony/Component/Locale/Tests/Stub/StubNumberFormatterTest.php @@ -312,7 +312,7 @@ public function testFormatIntl() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testFormatWithCurrencyStyleStub() { @@ -436,7 +436,7 @@ public function formatTypeDoubleProvider() } /** - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit_Framework_Error_Warning */ public function testFormatTypeCurrencyStub() { @@ -452,7 +452,7 @@ public function testFormatTypeCurrencyReturnStub() /** * @dataProvider formatTypeCurrencyProvider - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit_Framework_Error_Warning */ public function testFormatTypeCurrencyIntl($formatter, $value) { @@ -814,7 +814,7 @@ public function parseProvider() } /** - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit_Framework_Error_Warning */ public function testParseTypeDefaultStub() { @@ -823,7 +823,7 @@ public function testParseTypeDefaultStub() } /** - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit_Framework_Error_Warning */ public function testParseTypeDefaultIntl() { @@ -1103,7 +1103,7 @@ public function parseTypeDoubleProvider() } /** - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit_Framework_Error_Warning */ public function testParseTypeCurrencyStub() { @@ -1112,7 +1112,7 @@ public function testParseTypeCurrencyStub() } /** - * @expectedException PHPUnit_Framework_Error_Warning + * @expectedException \PHPUnit_Framework_Error_Warning */ public function testParseTypeCurrencyIntl() { diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php b/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php index 12eb568a29be..4120995ecbbe 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php @@ -20,7 +20,7 @@ class AuthenticationProviderManagerTest extends \PHPUnit_Framework_TestCase { /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testAuthenticateWithoutProviders() { diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php b/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php index 03275faa402a..cef3d285c1af 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php @@ -53,7 +53,7 @@ public function testConstructorKeyCannotBeEmptyString() } /** - * @expectedException PHPUnit_Framework_Error + * @expectedException \PHPUnit_Framework_Error * @dataProvider getUserArguments */ public function testConstructorUserCannotBeNull($user) diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php b/src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php index 3da20eb88024..67f431f671ff 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php @@ -28,7 +28,7 @@ public function testConstructor() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testSetAuthenticatedToTrue() { diff --git a/src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php b/src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php index 1c706ccdae44..b99423f767ca 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php @@ -47,7 +47,7 @@ public function testSupportsAttribute() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testSetVotersEmpty() { diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php b/src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php index 762f6abca472..702efb073c54 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php @@ -46,7 +46,7 @@ public function testMergePasswordAndSalt() } /** - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testMergePasswordAndSaltWithException() { diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php b/src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php index 117b8bac1333..f37d3bc4171b 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php @@ -35,7 +35,7 @@ public function testEncodePassword() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testEncodePasswordAlgorithmDoesNotExist() { diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php b/src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php index e303708fedd5..ca16f0237e4b 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php @@ -35,7 +35,7 @@ public function testEncodePassword() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testEncodePasswordAlgorithmDoesNotExist() { diff --git a/src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php b/src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php index 5197a29702be..275426cdf19f 100644 --- a/src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php +++ b/src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php @@ -42,7 +42,7 @@ public function testCreateUser() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testCreateUserAlreadyExist() { diff --git a/src/Symfony/Component/Security/Tests/Core/User/UserTest.php b/src/Symfony/Component/Security/Tests/Core/User/UserTest.php index 26e562f1fdff..d05f4911ab12 100644 --- a/src/Symfony/Component/Security/Tests/Core/User/UserTest.php +++ b/src/Symfony/Component/Security/Tests/Core/User/UserTest.php @@ -17,7 +17,7 @@ class UserTest extends \PHPUnit_Framework_TestCase { /** * @covers Symfony\Component\Security\Core\User\User::__construct - * @expectedException InvalidArgumentException + * @expectedException \InvalidArgumentException */ public function testConstructorException() { diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php b/src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php index ba94b6e95f4e..456b281d12c9 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php +++ b/src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php @@ -142,7 +142,7 @@ public function testHandleMatchedPathWithoutSuccessHandlerAndCsrfValidation() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testSuccessHandlerReturnsNonResponse() { diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php b/src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php index 81ac0f7d5cc5..c48aeac0a219 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php @@ -64,7 +64,7 @@ public static function dataProviderGetPreAuthenticatedData() } /** - * @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException + * @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException */ public function testGetPreAuthenticatedDataNoUser() { diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php index 07d8bd60d989..71da72f8e006 100644 --- a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php @@ -53,7 +53,7 @@ public function testSetRootNodeName() } /** - * @expectedException UnexpectedValueException + * @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException * @expectedExceptionMessage Document types are not allowed. */ public function testDocTypeIsNotAllowed() diff --git a/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php index ecc28c0194e9..1d58e0ee0fb2 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php @@ -102,7 +102,7 @@ public function testLoadThrowsAnExceptionIfFileNotLocal() } /** - * @expectedException Symfony\Component\Translation\Exception\InvalidResourceException + * @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException * @expectedExceptionMessage Document types are not allowed. */ public function testDocTypeIsNotAllowed() diff --git a/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php b/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php index aa6f87079eba..344e39b25366 100644 --- a/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php +++ b/src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php @@ -133,7 +133,7 @@ public function testAddFallbackCatalogue() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testAddFallbackCatalogueWithCircularReference() { @@ -145,7 +145,7 @@ public function testAddFallbackCatalogueWithCircularReference() } /** - * @expectedException LogicException + * @expectedException \LogicException */ public function testAddCatalogueWhenLocaleIsNotTheSameAsTheCurrentOne() { diff --git a/src/Symfony/Component/Translation/Tests/TranslatorTest.php b/src/Symfony/Component/Translation/Tests/TranslatorTest.php index 5fc3a32602b9..06009be97722 100644 --- a/src/Symfony/Component/Translation/Tests/TranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/TranslatorTest.php @@ -142,7 +142,7 @@ public function testTransNonExistentWithFallback() } /** - * @expectedException RuntimeException + * @expectedException \RuntimeException */ public function testWhenAResourceHasNoRegisteredLoader() { diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php index 741481c176c4..7c6e355bd171 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php @@ -99,7 +99,7 @@ public function testLoadGroupSequenceProvider() } /** - * @expectedException Symfony\Component\Validator\Exception\MappingException + * @expectedException \Symfony\Component\Validator\Exception\MappingException * @expectedExceptionMessage Document types are not allowed. */ public function testDocTypeIsNotAllowed()