merged branch bschussek/exceptionfix (PR #6582)

This PR was merged into the master branch.

Commits
-------

184c8e5 Fixed @expectedException definitions to reference absolute exception paths

Discussion
----------

Added leading slashes to @expectedException definitions

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
License of the code: MIT
Documentation PR: -

This PR adds leading backslashes `\` to `@expectedException` declarations.

The current version is inconsistent with other class references in doc blocks, which default to *relative* class names unless class name has a leading backslash.

```php
/**
 * @param RelativeNs\Class $param1
 * @param \AbsoluteNs\Class $param2
 */

but

/**
 * @expectedException AbsoluteNs\Class
 */
```

Consequently, PHPStorm does not understand the current statements and marks them as erroneous (and correctly so IMO, even though PHPUnit's interpretation is more relaxed).
This commit is contained in:
Fabien Potencier 2013-01-05 19:24:35 +01:00
commit 47b3f8636f
109 changed files with 322 additions and 322 deletions

View File

@ -70,7 +70,7 @@ class EntityChoiceListTest extends DoctrineOrmTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\FormException
* @expectedException \Symfony\Component\Form\Exception\FormException
* @expectedMessage Entity "Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIdentEntity" passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option).
*/
public function testEntitiesMustHaveAToStringMethod()
@ -97,7 +97,7 @@ class EntityChoiceListTest extends DoctrineOrmTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\FormException
* @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testChoicesMustBeManaged()
{

View File

@ -111,7 +111,7 @@ class EntityTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
*/
public function testClassOptionIsRequired()
{
@ -171,7 +171,7 @@ class EntityTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
{
@ -183,7 +183,7 @@ class EntityTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testConfigureQueryBuilderWithClosureReturningNonQueryBuilder()
{

View File

@ -96,7 +96,7 @@ class TranslationCollectionTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testNoArrayGiven()
{
@ -118,7 +118,7 @@ class TranslationCollectionTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
*/
public function testNoDataClassAdded()
{
@ -131,7 +131,7 @@ class TranslationCollectionTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
*/
public function testNoLanguagesAdded()
{
@ -144,7 +144,7 @@ class TranslationCollectionTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
*/
public function testNoColumnsAdded()
{

View File

@ -60,7 +60,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testInvalidTypeTrustedProxies()
{
@ -70,7 +70,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testInvalidValueTrustedProxies()
{

View File

@ -73,7 +73,7 @@ abstract class FrameworkExtensionTest extends TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testRouterRequiresResourceOption()
{
@ -211,7 +211,7 @@ abstract class FrameworkExtensionTest extends TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testTemplatingRequiresAtLeastOneEngine()
{

View File

@ -34,7 +34,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
);
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testNoConfigForProvider()
{
@ -50,7 +50,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testManyConfigForProvider()
{

View File

@ -69,7 +69,7 @@ class TwigLoaderPassTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\DependencyInjection\Exception\LogicException
* @expectedException \Symfony\Component\DependencyInjection\Exception\LogicException
*/
public function testMapperPassWithZeroTaggedLoaders()
{

View File

@ -57,7 +57,7 @@ class TemplateManagerTest extends TestCase
}
/**
* @expectedException Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function testGetNameOfInvalidTemplate()
{

View File

@ -16,7 +16,7 @@ use Symfony\Component\Config\Definition\ArrayNode;
class ArrayNodeTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
*/
public function testNormalizeThrowsExceptionWhenFalseIsNotAllowed()
{

View File

@ -34,7 +34,7 @@ class BooleanNodeTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider getInvalidValues
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
*/
public function testNormalizeThrowsExceptionOnInvalidValues($value)
{

View File

@ -34,7 +34,7 @@ class ArrayNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
* @dataProvider providePrototypeNodeSpecificCalls
*/
public function testPrototypeNodeSpecificOption($method, $args)
@ -57,7 +57,7 @@ class ArrayNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
*/
public function testConcreteNodeSpecificOption()
{
@ -67,7 +67,7 @@ class ArrayNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
*/
public function testPrototypeNodesCantHaveADefaultValueWhenUsingDefaultChildren()
{

View File

@ -132,7 +132,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testThenInvalid()
{

View File

@ -38,7 +38,7 @@ class NumericNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage The value 4 is too small for path "foo". Should be greater than: 5
*/
public function testIntegerMinAssertion()
@ -48,7 +48,7 @@ class NumericNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage The value 4 is too big for path "foo". Should be less than: 3
*/
public function testIntegerMaxAssertion()
@ -65,7 +65,7 @@ class NumericNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage The value 400 is too small for path "foo". Should be greater than: 500
*/
public function testFloatMinAssertion()
@ -75,7 +75,7 @@ class NumericNodeDefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage The value 4.3 is too big for path "foo". Should be less than: 0.3
*/
public function testFloatMaxAssertion()

View File

@ -30,7 +30,7 @@ class EnumNodeTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage The value "foobar" is not allowed for path "foo". Permissible values: "foo", "bar"
*/
public function testFinalizeWithInvalidValue()

View File

@ -40,7 +40,7 @@ class FloatNodeTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider getInvalidValues
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
*/
public function testNormalizeThrowsExceptionOnInvalidValues($value)
{

View File

@ -35,7 +35,7 @@ class IntegerNodeTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider getInvalidValues
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
*/
public function testNormalizeThrowsExceptionOnInvalidValues($value)
{

View File

@ -16,7 +16,7 @@ use Symfony\Component\Config\Definition\Builder\TreeBuilder;
class MergeTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException Symfony\Component\Config\Definition\Exception\ForbiddenOverwriteException
* @expectedException \Symfony\Component\Config\Definition\Exception\ForbiddenOverwriteException
*/
public function testForbiddenOverwrite()
{
@ -92,7 +92,7 @@ class MergeTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
*/
public function testDoesNotAllowNewKeysInSubsequentConfigs()
{

View File

@ -169,7 +169,7 @@ class NormalizerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
* @expectedExceptionMessage The attribute "id" must be set for path "root.thing".
*/
public function testNonAssociativeArrayThrowsExceptionIfAttributeNotSet()

View File

@ -41,7 +41,7 @@ class ScalarNodeTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider getInvalidValues
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
*/
public function testNormalizeThrowsExceptionOnInvalidValues($value)
{

View File

@ -69,7 +69,7 @@ class DelegatingLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Config\Exception\FileLoaderLoadException
* @expectedException \Symfony\Component\Config\Exception\FileLoaderLoadException
*/
public function testLoadThrowsAnExceptionIfTheResourceCannotBeLoaded()
{

View File

@ -37,7 +37,7 @@ class TokenizerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\CssSelector\Exception\ParseException
* @expectedException \Symfony\Component\CssSelector\Exception\ParseException
*/
public function testTokenizeInvalidString()
{

View File

@ -31,7 +31,7 @@ class CheckExceptionOnInvalidReferenceBehaviorPassTest extends \PHPUnit_Framewor
}
/**
* @expectedException Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
* @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
*/
public function testProcessThrowsExceptionOnInvalidReference()
{
@ -46,7 +46,7 @@ class CheckExceptionOnInvalidReferenceBehaviorPassTest extends \PHPUnit_Framewor
}
/**
* @expectedException Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
* @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
*/
public function testProcessThrowsExceptionOnInvalidReferenceFromInlinedDefinition()
{

View File

@ -96,7 +96,7 @@ class DefinitionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
* @expectedExceptionMessage Method name cannot be empty.
*/
public function testExceptionOnEmptyMethodCall()

View File

@ -89,7 +89,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testCopyFails()
{
@ -207,7 +207,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testMkdirCreatesDirectoriesFails()
{
@ -229,7 +229,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testTouchFails()
{
@ -518,7 +518,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testChownSymlinkFails()
{
@ -535,7 +535,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testChownFail()
{
@ -584,7 +584,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testChgrpSymlinkFails()
{
@ -601,7 +601,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testChgrpFail()
{
@ -626,7 +626,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testRenameThrowsExceptionIfTargetAlreadyExists()
{
@ -640,7 +640,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Filesystem\Exception\IOException
* @expectedException \Symfony\Component\Filesystem\Exception\IOException
*/
public function testRenameThrowsExceptionOnError()
{

View File

@ -82,7 +82,7 @@ class LazyChoiceListTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\FormException
* @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testLoadChoiceListShouldReturnChoiceList()
{

View File

@ -193,7 +193,7 @@ class ObjectChoiceListTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\FormException
* @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testInitArrayThrowsExceptionIfToStringNotFound()
{

View File

@ -68,7 +68,7 @@ class ArrayToPartsTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformRequiresArray()
{
@ -123,7 +123,7 @@ class ArrayToPartsTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyNull()
{
@ -140,7 +140,7 @@ class ArrayToPartsTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresArray()
{

View File

@ -67,7 +67,7 @@ class ChoiceToValueTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformExpectsScalar()
{

View File

@ -45,7 +45,7 @@ class ChoicesToValuesTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformExpectsArray()
{
@ -67,7 +67,7 @@ class ChoicesToValuesTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformExpectsArray()
{

View File

@ -117,7 +117,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformRequiresDateTime()
{
@ -191,7 +191,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_year()
{
@ -206,7 +206,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_month()
{
@ -221,7 +221,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_day()
{
@ -236,7 +236,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_hour()
{
@ -251,7 +251,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_minute()
{
@ -266,7 +266,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyEmpty_second()
{
@ -326,7 +326,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresArray()
{
@ -335,7 +335,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeYear()
{
@ -351,7 +351,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeMonth()
{
@ -367,7 +367,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeDay()
{
@ -383,7 +383,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeHour()
{
@ -399,7 +399,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeMinute()
{
@ -415,7 +415,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNegativeSecond()
{
@ -431,7 +431,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithInvalidMonth()
{
@ -447,7 +447,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithInvalidDay()
{
@ -463,7 +463,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithStringDay()
{
@ -479,7 +479,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithStringMonth()
{
@ -495,7 +495,7 @@ class DateTimeToArrayTransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithStringYear()
{

View File

@ -79,7 +79,7 @@ class DateTimeToRfc3339TransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testTransformRequiresValidDateTime()
{
@ -102,7 +102,7 @@ class DateTimeToRfc3339TransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresString()
{
@ -111,7 +111,7 @@ class DateTimeToRfc3339TransformerTest extends DateTimeTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformWithNonExistingDate()
{

View File

@ -50,7 +50,7 @@ class IntegerToLocalizedStringTransformerTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformExpectsString()
{
@ -60,7 +60,7 @@ class IntegerToLocalizedStringTransformerTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformExpectsValidNumber()
{
@ -70,7 +70,7 @@ class IntegerToLocalizedStringTransformerTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsNaN()
{
@ -80,7 +80,7 @@ class IntegerToLocalizedStringTransformerTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsNaN2()
{
@ -90,7 +90,7 @@ class IntegerToLocalizedStringTransformerTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsInfinity()
{
@ -100,7 +100,7 @@ class IntegerToLocalizedStringTransformerTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransformDisallowsNegativeInfinity()
{

View File

@ -83,7 +83,7 @@ class ValueToDuplicatesTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_partiallyNull()
{
@ -97,7 +97,7 @@ class ValueToDuplicatesTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\TransformationFailedException
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
*/
public function testReverseTransform_differences()
{
@ -111,7 +111,7 @@ class ValueToDuplicatesTransformerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testReverseTransformRequiresArray()
{

View File

@ -196,7 +196,7 @@ abstract class MergeCollectionListenerTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider getBooleanMatrix2
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testRequireArrayOrTraversable($allowAdd, $allowDelete)
{

View File

@ -79,7 +79,7 @@ class ChoiceTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testChoiceListOptionExpectsChoiceListInterface()
{
@ -89,7 +89,7 @@ class ChoiceTypeTest extends TypeTestCase
}
/**
* expectedException Symfony\Component\Form\Exception\FormException
* expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testEitherChoiceListOrChoicesMustBeSet()
{

View File

@ -24,7 +24,7 @@ class DateTypeTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testInvalidWidgetOption()
{
@ -34,7 +34,7 @@ class DateTypeTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testInvalidInputOption()
{
@ -271,7 +271,7 @@ class DateTypeTest extends LocalizedTestCase
* This test is to check that the strings '0', '1', '2', '3' are no accepted
* as valid IntlDateFormatter constants for FULL, LONG, MEDIUM or SHORT respectively.
*
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testThrowExceptionIfFormatIsNoPattern()
{
@ -283,7 +283,7 @@ class DateTypeTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testThrowExceptionIfFormatDoesNotContainYearMonthAndDay()
{
@ -294,7 +294,7 @@ class DateTypeTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testThrowExceptionIfFormatIsNoConstant()
{
@ -304,7 +304,7 @@ class DateTypeTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testThrowExceptionIfFormatIsInvalid()
{

View File

@ -391,7 +391,7 @@ class FormTypeTest extends TypeTestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testAttributesException()
{

View File

@ -629,7 +629,7 @@ class TimeTypeTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidConfigurationException
* @expectedException \Symfony\Component\Form\Exception\InvalidConfigurationException
*/
public function testInitializeWithSecondsAndWithoutMinutes()
{

View File

@ -188,7 +188,7 @@ class FormRegistryTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\FormException
* @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testGetTypeThrowsExceptionIfParentNotFound()
{
@ -200,7 +200,7 @@ class FormRegistryTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\FormException
* @expectedException \Symfony\Component\Form\Exception\FormException
*/
public function testGetTypeThrowsExceptionIfTypeNotFound()
{
@ -208,7 +208,7 @@ class FormRegistryTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testGetTypeThrowsExceptionIfNoString()
{

View File

@ -124,7 +124,7 @@ abstract class PropertyPathCollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testGetValueThrowsExceptionIfArrayAccessExpected()
{
@ -154,7 +154,7 @@ abstract class PropertyPathCollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testSetValueThrowsExceptionIfArrayAccessExpected()
{
@ -240,7 +240,7 @@ abstract class PropertyPathCollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testMapFormToDataFailsIfOnlyAdderFound()
{
@ -258,7 +258,7 @@ abstract class PropertyPathCollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testMapFormToDataFailsIfOnlyRemoverFound()
{

View File

@ -27,7 +27,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testGetValueThrowsExceptionIfIndexNotationExpected()
{
@ -126,7 +126,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\PropertyAccessDeniedException
* @expectedException \Symfony\Component\Form\Exception\PropertyAccessDeniedException
*/
public function testGetValueThrowsExceptionIfPropertyIsNotPublic()
{
@ -156,7 +156,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\PropertyAccessDeniedException
* @expectedException \Symfony\Component\Form\Exception\PropertyAccessDeniedException
*/
public function testGetValueThrowsExceptionIfGetterIsNotPublic()
{
@ -208,7 +208,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\PropertyAccessDeniedException
* @expectedException \Symfony\Component\Form\Exception\PropertyAccessDeniedException
*/
public function testGetValueThrowsExceptionIfIsserIsNotPublic()
{
@ -218,7 +218,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testGetValueThrowsExceptionIfPropertyDoesNotExist()
{
@ -228,7 +228,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testGetValueThrowsExceptionIfNotObjectOrArray()
{
@ -238,7 +238,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testGetValueThrowsExceptionIfNull()
{
@ -248,7 +248,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testGetValueThrowsExceptionIfEmpty()
{
@ -268,7 +268,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyException
*/
public function testSetValueThrowsExceptionIfIndexNotationExpected()
{
@ -341,7 +341,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\PropertyAccessDeniedException
* @expectedException \Symfony\Component\Form\Exception\PropertyAccessDeniedException
*/
public function testSetValueThrowsExceptionIfGetterIsNotPublic()
{
@ -351,7 +351,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testSetValueThrowsExceptionIfNotObjectOrArray()
{
@ -362,7 +362,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testSetValueThrowsExceptionIfNull()
{
@ -373,7 +373,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testSetValueThrowsExceptionIfEmpty()
{
@ -391,7 +391,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
public function testInvalidPropertyPath_noDotBeforeProperty()
{
@ -399,7 +399,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
public function testInvalidPropertyPath_dotAtTheBeginning()
{
@ -407,7 +407,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
public function testInvalidPropertyPath_unexpectedCharacters()
{
@ -415,7 +415,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\InvalidPropertyPathException
* @expectedException \Symfony\Component\Form\Exception\InvalidPropertyPathException
*/
public function testInvalidPropertyPath_empty()
{
@ -423,7 +423,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testInvalidPropertyPath_null()
{
@ -431,7 +431,7 @@ class PropertyPathTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
*/
public function testInvalidPropertyPath_false()
{

View File

@ -103,7 +103,7 @@ class UploadedFileTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\HttpFoundation\File\Exception\FileException
* @expectedException \Symfony\Component\HttpFoundation\File\Exception\FileException
*/
public function testMoveLocalFileIsNotAllowed()
{

View File

@ -136,7 +136,7 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\HttpKernel\Exception\NotFoundHttpException
* @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function testHandleWhenNoControllerIsFound()
{

View File

@ -19,7 +19,7 @@ use Symfony\Component\Locale\Tests\TestCase as LocaleTestCase;
class StubCollatorTest extends LocaleTestCase
{
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testConstructorWithUnsupportedLocale()
{
@ -70,7 +70,7 @@ class StubCollatorTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testCompare()
{
@ -79,7 +79,7 @@ class StubCollatorTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetAttribute()
{
@ -106,7 +106,7 @@ class StubCollatorTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetSortKey()
{
@ -115,7 +115,7 @@ class StubCollatorTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetStrength()
{
@ -124,7 +124,7 @@ class StubCollatorTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetAttribute()
{
@ -133,7 +133,7 @@ class StubCollatorTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetStrength()
{

View File

@ -19,7 +19,7 @@ use Symfony\Component\Locale\Tests\TestCase as LocaleTestCase;
class StubIntlDateFormatterTest extends LocaleTestCase
{
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testConstructorWithUnsupportedLocale()
{
@ -446,7 +446,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\NotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\NotImplementedException
*/
public function testFormatWithTimezoneFormatOptionAndDifferentThanUtcStub()
{
@ -637,7 +637,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\NotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\NotImplementedException
*/
public function testFormatWithUnimplementedCharsStub()
{
@ -647,7 +647,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\NotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\NotImplementedException
*/
public function testFormatWithNonIntegerTimestamp()
{
@ -743,7 +743,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testLocaltime()
{
@ -1086,7 +1086,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentNotImplementedException
*/
public function testParseWithNotNullPositionValueStub()
{
@ -1096,7 +1096,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetCalendar()
{
@ -1105,7 +1105,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testSetLenient()
{
@ -1180,7 +1180,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\NotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\NotImplementedException
*/
public function testSetTimeZoneIdWithGmtTimeZoneWithMinutesOffsetStub()
{

View File

@ -112,7 +112,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testAcceptFromHttp()
{
@ -120,7 +120,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testComposeLocale()
{
@ -133,7 +133,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testFilterMatches()
{
@ -141,7 +141,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetAllVariants()
{
@ -154,7 +154,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetDisplayLanguage()
{
@ -162,7 +162,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetDisplayName()
{
@ -170,7 +170,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetDisplayRegion()
{
@ -178,7 +178,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetDisplayScript()
{
@ -186,7 +186,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetDisplayVariant()
{
@ -194,7 +194,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetKeywords()
{
@ -202,7 +202,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetPrimaryLanguage()
{
@ -210,7 +210,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetRegion()
{
@ -218,7 +218,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetScript()
{
@ -226,7 +226,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testLookup()
{
@ -238,7 +238,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testParseLocale()
{
@ -246,7 +246,7 @@ class StubLocaleTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetDefault()
{

View File

@ -23,7 +23,7 @@ use Symfony\Component\Locale\Tests\TestCase as LocaleTestCase;
class StubNumberFormatterTest extends LocaleTestCase
{
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testConstructorWithUnsupportedLocale()
{
@ -31,7 +31,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testConstructorWithUnsupportedStyle()
{
@ -39,7 +39,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentNotImplementedException
*/
public function testConstructorWithPatternDifferentThanNull()
{
@ -47,7 +47,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testSetAttributeWithUnsupportedAttribute()
{
@ -56,7 +56,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testSetAttributeInvalidRoundingMode()
{
@ -329,7 +329,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testFormatTypeInt32Stub()
{
@ -367,7 +367,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testFormatTypeInt64Stub()
{
@ -404,7 +404,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentValueNotImplementedException
*/
public function testFormatTypeDoubleStub()
{
@ -699,7 +699,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetPattern()
{
@ -708,7 +708,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetSymbol()
{
@ -717,7 +717,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testGetTextAttribute()
{
@ -726,7 +726,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testParseCurrency()
{
@ -1120,7 +1120,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodArgumentNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodArgumentNotImplementedException
*/
public function testParseWithNotNullPositionValueStub()
{
@ -1139,7 +1139,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetPattern()
{
@ -1148,7 +1148,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetSymbol()
{
@ -1157,7 +1157,7 @@ class StubNumberFormatterTest extends LocaleTestCase
}
/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
* @expectedException \Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testSetTextAttribute()
{

View File

@ -173,7 +173,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testResolveFailsIfNonExistingOption()
{
@ -195,7 +195,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
*/
public function testResolveFailsIfMissingRequiredOption()
{
@ -283,7 +283,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testResolveFailsIfOptionValueNotAllowed()
{
@ -427,7 +427,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testResolveFailsIfOptionTypeNotAllowed()
{
@ -445,7 +445,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testResolveFailsIfOptionTypeNotAllowedMultipleOptions()
{
@ -466,7 +466,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
* @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException
*/
public function testResolveFailsIfOptionTypeNotAllowedAddTypes()
{
@ -487,7 +487,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testSetRequiredFailsIfDefaultIsPassed()
{
@ -497,7 +497,7 @@ class OptionsResolverTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testSetOptionalFailsIfDefaultIsPassed()
{

View File

@ -60,7 +60,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testSetNotSupportedAfterGet()
{
@ -70,7 +70,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testRemoveNotSupportedAfterGet()
{
@ -80,7 +80,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testSetNormalizerNotSupportedAfterGet()
{
@ -270,7 +270,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testFailForCyclicDependencies()
{
@ -286,7 +286,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testFailForCyclicDependenciesBetweenNormalizers()
{
@ -305,7 +305,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testFailForCyclicDependenciesBetweenNormalizerAndLazyOption()
{
@ -394,7 +394,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
/**
* @covers Symfony\Component\OptionsResolver\Options::replace
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testCannotReplaceAfterOptionWasRead()
{
@ -408,7 +408,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
/**
* @covers Symfony\Component\OptionsResolver\Options::overload
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testCannotOverloadAfterOptionWasRead()
{
@ -420,7 +420,7 @@ class OptionsTest extends \PHPUnit_Framework_TestCase
/**
* @covers Symfony\Component\OptionsResolver\Options::clear
* @expectedException Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
* @expectedException \Symfony\Component\OptionsResolver\Exception\OptionDefinitionException
*/
public function testCannotClearAfterOptionWasRead()
{

View File

@ -21,7 +21,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
abstract protected function getProcess($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array());
/**
* @expectedException Symfony\Component\Process\Exception\InvalidArgumentException
* @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
*/
public function testNegativeTimeoutFromConstructor()
{
@ -29,7 +29,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Process\Exception\InvalidArgumentException
* @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
*/
public function testNegativeTimeoutFromSetter()
{

View File

@ -85,7 +85,7 @@ class ProcessBuilderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Process\Exception\InvalidArgumentException
* @expectedException \Symfony\Component\Process\Exception\InvalidArgumentException
*/
public function testNegativeTimeoutFromSetter()
{

View File

@ -23,7 +23,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testGetExitCode()
{
@ -31,7 +31,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testExitCodeCommandFailed()
{
@ -39,7 +39,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessIsSignaledIfStopped()
{
@ -47,7 +47,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessWithTermSignal()
{
@ -55,7 +55,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessIsNotSignaled()
{
@ -63,7 +63,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessWithoutTermSignal()
{
@ -71,7 +71,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testExitCodeText()
{
@ -82,7 +82,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testIsSuccessful()
{
@ -90,7 +90,7 @@ class SigchildDisabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testIsNotSuccessful()
{

View File

@ -23,7 +23,7 @@ class SigchildEnabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessIsSignaledIfStopped()
{
@ -31,7 +31,7 @@ class SigchildEnabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessWithTermSignal()
{
@ -39,7 +39,7 @@ class SigchildEnabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessIsNotSignaled()
{
@ -47,7 +47,7 @@ class SigchildEnabledProcessTest extends AbstractProcessTest
}
/**
* @expectedException Symfony\Component\Process\Exception\RuntimeException
* @expectedException \Symfony\Component\Process\Exception\RuntimeException
*/
public function testProcessWithoutTermSignal()
{

View File

@ -89,7 +89,7 @@ class PhpGeneratorDumperTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\RouteNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
*/
public function testGenerateNonExistingRoute()
{

View File

@ -75,7 +75,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testRelativeUrlWithNullParameterButNotOptional()
{
@ -161,7 +161,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\RouteNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
*/
public function testGenerateWithoutRoutes()
{
@ -170,7 +170,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\MissingMandatoryParametersException
* @expectedException \Symfony\Component\Routing\Exception\MissingMandatoryParametersException
*/
public function testGenerateForRouteWithoutMandatoryParameter()
{
@ -179,7 +179,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testGenerateForRouteWithInvalidOptionalParameter()
{
@ -188,7 +188,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testGenerateForRouteWithInvalidParameter()
{
@ -228,7 +228,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testGenerateForRouteWithInvalidMandatoryParameter()
{
@ -237,7 +237,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testRequiredParamAndEmptyPassed()
{
@ -366,7 +366,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testDefaultRequirementOfVariableDisallowsSlash()
{
@ -375,7 +375,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testDefaultRequirementOfVariableDisallowsNextSeparator()
{
@ -406,7 +406,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testUrlWithInvalidParameterInHostname()
{
@ -415,7 +415,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testUrlWithInvalidParameterInHostnameWhenParamHasADefaultValue()
{
@ -424,7 +424,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\InvalidParameterException
* @expectedException \Symfony\Component\Routing\Exception\InvalidParameterException
*/
public function testUrlWithInvalidParameterEqualsDefaultValueInHostname()
{

View File

@ -28,7 +28,7 @@ class RedirectableUrlMatcherTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
*/
public function testRedirectWhenNoSlashForNonSafeMethod()
{

View File

@ -295,7 +295,7 @@ class UrlMatcherTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
*/
public function testDefaultRequirementOfVariableDisallowsSlash()
{
@ -307,7 +307,7 @@ class UrlMatcherTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
*/
public function testDefaultRequirementOfVariableDisallowsNextSeparator()
{
@ -319,7 +319,7 @@ class UrlMatcherTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
*/
public function testSchemeRequirement()
{
@ -378,7 +378,7 @@ class UrlMatcherTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException
* @expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
*/
public function testWithOutHostnameHostnameDoesNotMatch()
{

View File

@ -27,7 +27,7 @@ class AclProviderTest extends \PHPUnit_Framework_TestCase
protected $insertSidStmt;
/**
* @expectedException Symfony\Component\Security\Acl\Exception\AclNotFoundException
* @expectedException \Symfony\Component\Security\Acl\Exception\AclNotFoundException
* @expectedMessage There is no ACL for the given object identity.
*/
public function testFindAclThrowsExceptionWhenNoAclExists()

View File

@ -53,7 +53,7 @@ class MutableAclProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException
* @expectedException \Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException
*/
public function testCreateAclThrowsExceptionWhenAclAlreadyExists()
{

View File

@ -73,7 +73,7 @@ class PermissionGrantingStrategyTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Acl\Exception\NoAceFoundException
* @expectedException \Symfony\Component\Security\Acl\Exception\NoAceFoundException
*/
public function testIsGrantedReturnsExceptionIfNoAceIsFound()
{

View File

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

View File

@ -18,7 +18,7 @@ use Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationPro
class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException Symfony\Component\Security\Core\Exception\AuthenticationServiceException
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationServiceException
*/
public function testRetrieveUserWhenProviderDoesNotReturnAnUserInterface()
{
@ -30,7 +30,7 @@ class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\UsernameNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
*/
public function testRetrieveUserWhenUsernameIsNotFound()
{
@ -48,7 +48,7 @@ class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AuthenticationServiceException
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationServiceException
*/
public function testRetrieveUserWhenAnExceptionOccurs()
{
@ -105,7 +105,7 @@ class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testCheckAuthenticationWhenCredentialsAreEmpty()
{
@ -161,7 +161,7 @@ class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testCheckAuthenticationWhenCredentialsAreNotValid()
{
@ -185,7 +185,7 @@ class DaoAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testCheckAuthenticationDoesNotReauthenticateWhenPasswordHasChanged()
{

View File

@ -42,7 +42,7 @@ class PreAuthenticatedAuthenticationProviderTest extends \PHPUnit_Framework_Test
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testAuthenticateWhenNoUserIsSet()
{
@ -70,7 +70,7 @@ class PreAuthenticatedAuthenticationProviderTest extends \PHPUnit_Framework_Test
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\LockedException
* @expectedException \Symfony\Component\Security\Core\Exception\LockedException
*/
public function testAuthenticateWhenUserCheckerThrowsException()
{

View File

@ -34,7 +34,7 @@ class RememberMeAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testAuthenticateWhenKeysDoNotMatch()
{
@ -45,7 +45,7 @@ class RememberMeAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AccountExpiredException
* @expectedException \Symfony\Component\Security\Core\Exception\AccountExpiredException
*/
public function testAuthenticateWhenPostChecksFails()
{

View File

@ -33,7 +33,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\UsernameNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
*/
public function testAuthenticateWhenUsernameIsNotFound()
{
@ -47,7 +47,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/
public function testAuthenticateWhenUsernameIsNotFoundAndHideIsTrue()
{
@ -61,7 +61,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AuthenticationServiceException
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationServiceException
*/
public function testAuthenticateWhenProviderDoesNotReturnAnUserInterface()
{
@ -75,7 +75,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\CredentialsExpiredException
* @expectedException \Symfony\Component\Security\Core\Exception\CredentialsExpiredException
*/
public function testAuthenticateWhenPreChecksFails()
{
@ -95,7 +95,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AccountExpiredException
* @expectedException \Symfony\Component\Security\Core\Exception\AccountExpiredException
*/
public function testAuthenticateWhenPostChecksFails()
{
@ -115,7 +115,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedExceptionMessage Bad credentials
*/
public function testAuthenticateWhenPostCheckAuthenticationFails()
@ -134,7 +134,7 @@ class UserAuthenticationProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
* @expectedExceptionMessage Foo
*/
public function testAuthenticateWhenPostCheckAuthenticationFailsWithHideFalse()

View File

@ -27,7 +27,7 @@ class InMemoryTokenProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\TokenNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\TokenNotFoundException
*/
public function testLoadTokenBySeriesThrowsNotFoundException()
{
@ -49,7 +49,7 @@ class InMemoryTokenProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\TokenNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\TokenNotFoundException
*/
public function testDeleteToken()
{

View File

@ -41,7 +41,7 @@ class SecurityContextTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException
*/
public function testVoteWithoutAuthenticationToken()
{

View File

@ -33,7 +33,7 @@ class UserCheckerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\CredentialsExpiredException
* @expectedException \Symfony\Component\Security\Core\Exception\CredentialsExpiredException
*/
public function testCheckPreAuthCredentialsExpired()
{
@ -65,7 +65,7 @@ class UserCheckerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\LockedException
* @expectedException \Symfony\Component\Security\Core\Exception\LockedException
*/
public function testCheckPostAuthAccountLocked()
{
@ -78,7 +78,7 @@ class UserCheckerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\DisabledException
* @expectedException \Symfony\Component\Security\Core\Exception\DisabledException
*/
public function testCheckPostAuthDisabled()
{
@ -92,7 +92,7 @@ class UserCheckerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AccountExpiredException
* @expectedException \Symfony\Component\Security\Core\Exception\AccountExpiredException
*/
public function testCheckPostAuthAccountExpired()
{

View File

@ -42,7 +42,7 @@ class ChainUserProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\UsernameNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
*/
public function testLoadUserByUsernameThrowsUsernameNotFoundException()
{
@ -107,7 +107,7 @@ class ChainUserProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\UnsupportedUserException
* @expectedException \Symfony\Component\Security\Core\Exception\UnsupportedUserException
*/
public function testRefreshUserThrowsUnsupportedUserException()
{

View File

@ -52,7 +52,7 @@ class InMemoryUserProviderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\UsernameNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\UsernameNotFoundException
*/
public function testLoadUserByUsernameDoesNotExist()
{

View File

@ -31,7 +31,7 @@ class AccessListenerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AccessDeniedException
* @expectedException \Symfony\Component\Security\Core\Exception\AccessDeniedException
*/
public function testHandleWhenTheAccessDecisionManagerDecidesToRefuseAccess()
{
@ -198,7 +198,7 @@ class AccessListenerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException
* @expectedException \Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException
*/
public function testHandleWhenTheSecurityContextHasNoToken()
{

View File

@ -166,7 +166,7 @@ class LogoutListenerTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Security\Core\Exception\LogoutException
* @expectedException \Symfony\Component\Security\Core\Exception\LogoutException
*/
public function testCsrfValidationFails()
{

View File

@ -46,7 +46,7 @@ class CsvFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{
@ -56,7 +56,7 @@ class CsvFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadNonLocalResource()
{

View File

@ -28,7 +28,7 @@ class IcuDatFileLoaderTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadInvalidResource()
{
@ -62,7 +62,7 @@ class IcuDatFileLoaderTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{

View File

@ -40,7 +40,7 @@ class IcuResFileLoaderTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{
@ -49,7 +49,7 @@ class IcuResFileLoaderTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadInvalidResource()
{

View File

@ -46,7 +46,7 @@ class IniFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{

View File

@ -46,7 +46,7 @@ class MoFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{
@ -56,7 +56,7 @@ class MoFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadInvalidResource()
{

View File

@ -35,7 +35,7 @@ class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{
@ -45,7 +45,7 @@ class PhpFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadThrowsAnExceptionIfFileNotLocal()
{

View File

@ -57,7 +57,7 @@ class PoFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{

View File

@ -35,7 +35,7 @@ class QtFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{

View File

@ -43,7 +43,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadInvalidResource()
{
@ -52,7 +52,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadResourceDoesNotValidate()
{
@ -61,7 +61,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{
@ -71,7 +71,7 @@ class XliffFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadThrowsAnExceptionIfFileNotLocal()
{

View File

@ -50,7 +50,7 @@ class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testLoadNonExistingResource()
{
@ -60,7 +60,7 @@ class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadThrowsAnExceptionIfFileNotLocal()
{
@ -70,7 +70,7 @@ class YamlFileLoaderTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Translation\Exception\InvalidResourceException
* @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException
*/
public function testLoadThrowsAnExceptionIfNotAnArray()
{

View File

@ -69,7 +69,7 @@ class TranslatorTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider getTransFileTests
* @expectedException Symfony\Component\Translation\Exception\NotFoundResourceException
* @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
*/
public function testTransWithoutFallbackLocaleFile($format, $loader)
{

View File

@ -59,7 +59,7 @@ class ConstraintValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ValidatorException
* @expectedException \Symfony\Component\Validator\Exception\ValidatorException
*/
public function testSetMessageFailsIfNoContextSet()
{

View File

@ -20,7 +20,7 @@ use Symfony\Component\Validator\Constraints\Valid;
class AllTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectNonConstraints()
{
@ -30,7 +30,7 @@ class AllTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectValidConstraint()
{

View File

@ -68,7 +68,7 @@ class AllValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testThrowsExceptionIfNotTraversable()
{

View File

@ -118,7 +118,7 @@ class CallbackValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectCallbackArray()
{
@ -128,7 +128,7 @@ class CallbackValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testExpectValidMethods()
{
@ -138,7 +138,7 @@ class CallbackValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testExpectValidCallbacks()
{

View File

@ -48,7 +48,7 @@ class ChoiceValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectArrayIfMultipleIsTrue()
{
@ -69,7 +69,7 @@ class ChoiceValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testChoicesOrCallbackExpected()
{
@ -77,7 +77,7 @@ class ChoiceValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testValidCallbackExpected()
{

View File

@ -22,7 +22,7 @@ use Symfony\Component\Validator\Constraints\Valid;
class CollectionTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectInvalidFieldsOption()
{
@ -32,7 +32,7 @@ class CollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectNonConstraints()
{
@ -42,7 +42,7 @@ class CollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectValidConstraint()
{
@ -52,7 +52,7 @@ class CollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectValidConstraintWithinOptional()
{
@ -62,7 +62,7 @@ class CollectionTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testRejectValidConstraintWithinRequired()
{

View File

@ -92,7 +92,7 @@ abstract class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testThrowsExceptionIfNotTraversable()
{

View File

@ -46,7 +46,7 @@ abstract class CountValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsCountableType()
{

View File

@ -51,7 +51,7 @@ class CountryValidatorTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

View File

@ -57,7 +57,7 @@ class DateTimeValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

View File

@ -57,7 +57,7 @@ class DateValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

View File

@ -49,7 +49,7 @@ class EmailValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

View File

@ -62,7 +62,7 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleTypeOrFile()
{
@ -150,7 +150,7 @@ abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testInvalidMaxSize()
{

View File

@ -49,7 +49,7 @@ class IpValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{
@ -57,7 +57,7 @@ class IpValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\ConstraintDefinitionException
* @expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException
*/
public function testInvalidValidatorVersion()
{

View File

@ -51,7 +51,7 @@ class LanguageValidatorTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

View File

@ -49,7 +49,7 @@ class LengthValidatorTest extends \PHPUnit_Framework_TestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

View File

@ -51,7 +51,7 @@ class LocaleValidatorTest extends LocalizedTestCase
}
/**
* @expectedException Symfony\Component\Validator\Exception\UnexpectedTypeException
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeException
*/
public function testExpectsStringCompatibleType()
{

Some files were not shown because too many files have changed in this diff Show More