fixed @expectedException class names

This commit is contained in:
Fabien Potencier 2013-11-25 09:44:14 +01:00
parent 3c5a863330
commit 8d69bb5886
38 changed files with 63 additions and 63 deletions

View File

@ -54,7 +54,7 @@ class FilesystemLoaderTest extends TestCase
}
/**
* @expectedException Twig_Error_Loader
* @expectedException \Twig_Error_Loader
*/
public function testTwigErrorIfLocatorThrowsInvalid()
{
@ -78,7 +78,7 @@ class FilesystemLoaderTest extends TestCase
}
/**
* @expectedException Twig_Error_Loader
* @expectedException \Twig_Error_Loader
*/
public function testTwigErrorIfLocatorReturnsFalse()
{

View File

@ -189,7 +189,7 @@ class ClassCollectionLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testUnableToLoadClassException()
{

View File

@ -25,7 +25,7 @@ class ArrayNodeTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage Unrecognized options "foo" under "root"
*/
public function testExceptionThrownOnUnrecognizedChild()

View File

@ -43,7 +43,7 @@ class LoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Exception\FileLoaderLoadException
* @expectedException \Symfony\Component\Config\Exception\FileLoaderLoadException
*/
public function testResolveWhenResolverCannotFindLoader()
{

View File

@ -288,7 +288,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Invalid callable provided to Command::setCode.
*/
public function testSetCodeWithNonCallable()

View File

@ -59,7 +59,7 @@ class OutputFormatterStyleStackTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testInvalidPop()
{

View File

@ -410,7 +410,7 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
/**
* @covers Symfony\Component\DependencyInjection\ContainerBuilder::merge
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testMergeLogicException()
{
@ -537,7 +537,7 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException BadMethodCallException
* @expectedException \BadMethodCallException
*/
public function testThrowsExceptionWhenSetServiceOnAFrozenContainer()
{
@ -549,7 +549,7 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException BadMethodCallException
* @expectedException \BadMethodCallException
*/
public function testThrowsExceptionWhenAddServiceOnAFrozenContainer()
{
@ -578,7 +578,7 @@ class ContainerBuilderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException BadMethodCallException
* @expectedException \BadMethodCallException
*/
public function testThrowsExceptionWhenSetDefinitionOnAFrozenContainer()
{

View File

@ -71,7 +71,7 @@ class DefinitionDecoratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testReplaceArgumentShouldRequireIntegerIndex()
{
@ -96,7 +96,7 @@ class DefinitionDecoratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException OutOfBoundsException
* @expectedException \OutOfBoundsException
*/
public function testGetArgumentShouldCheckBounds()
{

View File

@ -251,7 +251,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException OutOfBoundsException
* @expectedException \OutOfBoundsException
*/
public function testGetArgumentShouldCheckBounds()
{
@ -262,7 +262,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException OutOfBoundsException
* @expectedException \OutOfBoundsException
*/
public function testReplaceArgumentShouldCheckBounds()
{

View File

@ -81,7 +81,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testExportParameters()
{
@ -121,7 +121,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage Service id "bar$" cannot be converted to a valid PHP method name.
*/
public function testAddServiceInvalidServiceId()

View File

@ -278,7 +278,7 @@ class FormFactoryTest extends \PHPUnit_Framework_TestCase
}
/**
* @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()

View File

@ -38,7 +38,7 @@ class CookieTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider invalidNames
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
* @covers Symfony\Component\HttpFoundation\Cookie::__construct
*/
public function testInstantiationThrowsExceptionIfCookieNameContainsInvalidCharacters($name)
@ -47,7 +47,7 @@ class CookieTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testInvalidExpiration()
{

View File

@ -749,7 +749,7 @@ class RequestTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testGetHostWithFakeHttpHostValue()
{
@ -879,7 +879,7 @@ class RequestTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
* @dataProvider getContentCantBeCalledTwiceWithResourcesProvider
*/
public function testGetContentCantBeCalledTwiceWithResources($first, $second)

View File

@ -634,7 +634,7 @@ class ResponseTest extends ResponseTestCase
}
/**
* @expectedException UnexpectedValueException
* @expectedException \UnexpectedValueException
* @dataProvider invalidContentProvider
*/
public function testSetContentInvalid($content)

View File

@ -49,7 +49,7 @@ class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testConstructorShouldThrowExceptionForInvalidMongo()
{
@ -57,7 +57,7 @@ class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testConstructorShouldThrowExceptionForMissingOptions()
{

View File

@ -97,7 +97,7 @@ class MockArraySessionStorageTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testUnstartedSave()
{

View File

@ -107,7 +107,7 @@ class MockFileSessionStorageTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testSaveWithoutStart()
{

View File

@ -34,7 +34,7 @@ class FragmentHandlerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testRenderWithUnknownRenderer()
{
@ -44,7 +44,7 @@ class FragmentHandlerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
* @expectedExceptionMessage Error when rendering "http://localhost/" (Status code is 404).
*/
public function testDeliverWithUnsuccessfulResponse()

View File

@ -133,7 +133,7 @@ class EsiTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testProcessWhenNoSrcInAnEsi()
{
@ -173,7 +173,7 @@ class EsiTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testHandleWhenResponseIsNot200()
{

View File

@ -35,7 +35,7 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testHandleWhenControllerThrowsAnExceptionAndRawIsTrue()
{
@ -45,7 +45,7 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testHandleWhenControllerThrowsAnExceptionAndRawIsFalseAndNoListenerIsRegistered()
{
@ -147,7 +147,7 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testHandleWhenTheControllerIsNotACallable()
{
@ -199,7 +199,7 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testHandleWhenTheControllerDoesNotReturnAResponse()
{

View File

@ -17,7 +17,7 @@ use Symfony\Component\Locale\Tests\TestCase as LocaleTestCase;
class StubLocaleTest extends LocaleTestCase
{
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testGetDisplayCountriesWithUnsupportedLocale()
{
@ -37,7 +37,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testGetDisplayLanguagesWithUnsupportedLocale()
{
@ -57,7 +57,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testGetCurrenciesDataWithUnsupportedLocale()
{
@ -92,7 +92,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testGetDisplayLocalesWithUnsupportedLocale()
{

View File

@ -312,7 +312,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testFormatWithCurrencyStyleStub()
{
@ -436,7 +436,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testFormatTypeCurrencyStub()
{
@ -452,7 +452,7 @@ class StubNumberFormatterTest extends LocaleTestCase
/**
* @dataProvider formatTypeCurrencyProvider
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testFormatTypeCurrencyIntl($formatter, $value)
{
@ -814,7 +814,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testParseTypeDefaultStub()
{
@ -823,7 +823,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testParseTypeDefaultIntl()
{
@ -1103,7 +1103,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testParseTypeCurrencyStub()
{
@ -1112,7 +1112,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException PHPUnit_Framework_Error_Warning
* @expectedException \PHPUnit_Framework_Error_Warning
*/
public function testParseTypeCurrencyIntl()
{

View File

@ -20,7 +20,7 @@ use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
class AuthenticationProviderManagerTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testAuthenticateWithoutProviders()
{

View File

@ -53,7 +53,7 @@ class RememberMeTokenTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException PHPUnit_Framework_Error
* @expectedException \PHPUnit_Framework_Error
* @dataProvider getUserArguments
*/
public function testConstructorUserCannotBeNull($user)

View File

@ -28,7 +28,7 @@ class UsernamePasswordTokenTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testSetAuthenticatedToTrue()
{

View File

@ -47,7 +47,7 @@ class AccessDecisionManagerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testSetVotersEmpty()
{

View File

@ -46,7 +46,7 @@ class BasePasswordEncoderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException InvalidArgumentException
* @expectedException \InvalidArgumentException
*/
public function testMergePasswordAndSaltWithException()
{

View File

@ -35,7 +35,7 @@ class MessageDigestPasswordEncoderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testEncodePasswordAlgorithmDoesNotExist()
{

View File

@ -35,7 +35,7 @@ class Pbkdf2PasswordEncoderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testEncodePasswordAlgorithmDoesNotExist()
{

View File

@ -42,7 +42,7 @@ class InMemoryUserProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testCreateUserAlreadyExist()
{

View File

@ -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()
{

View File

@ -142,7 +142,7 @@ class LogoutListenerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testSuccessHandlerReturnsNonResponse()
{

View File

@ -64,7 +64,7 @@ class X509AuthenticationListenerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testGetPreAuthenticatedDataNoUser()
{

View File

@ -53,7 +53,7 @@ class XmlEncoderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException UnexpectedValueException
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
* @expectedExceptionMessage Document types are not allowed.
*/
public function testDocTypeIsNotAllowed()

View File

@ -102,7 +102,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedExceptionMessage Document types are not allowed.
*/
public function testDocTypeIsNotAllowed()

View File

@ -133,7 +133,7 @@ class MessageCatalogueTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testAddFallbackCatalogueWithCircularReference()
{
@ -145,7 +145,7 @@ class MessageCatalogueTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException LogicException
* @expectedException \LogicException
*/
public function testAddCatalogueWhenLocaleIsNotTheSameAsTheCurrentOne()
{

View File

@ -142,7 +142,7 @@ class TranslatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException RuntimeException
* @expectedException \RuntimeException
*/
public function testWhenAResourceHasNoRegisteredLoader()
{

View File

@ -99,7 +99,7 @@ class XmlFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\MappingException
* @expectedException \Symfony\Component\Validator\Exception\MappingException
* @expectedExceptionMessage Document types are not allowed.
*/
public function testDocTypeIsNotAllowed()