10000 Fixed @expectedException definitions to reference absolute exception … · Ninir/symfony@184c8e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 184c8e5

Browse files
committed
Fixed @ExpectedException definitions to reference absolute exception paths
1 parent 31ff3db commit 184c8e5

File tree

109 files changed

+322
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+322
-322
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/EntityChoiceListTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function tearDown()
7070
}
7171

7272
/**
73-
* @expectedException Symfony\Component\Form\Exception\FormException
73+
* @expectedException \Symfony\Component\Form\Exception\FormException
7474
* @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).
7575
*/
7676
public function testEntitiesMustHaveAToStringMethod()
@@ -97,7 +97,7 @@ public function testEntitiesMustHaveAToStringMethod()
9797
}
9898

9999
/**
100-
* @expectedException Symfony\Component\Form\Exception\FormException
100+
* @expectedException \Symfony\Component\Form\Exception\FormException
101101
*/
102102
public function testChoicesMustBeManaged()
103103
{

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function persist(array $entities)
111111
}
112112

113113
/**
114-
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
114+
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
115115
*/
116116
public function testClassOptionIsRequired()
117117
{
@@ -171,7 +171,7 @@ public function testSetDataToUninitializedEntityWithNonRequiredQueryBuilder()
171171
}
172172

173173
/**
174-
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
174+
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
175175
*/
176176
public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
177177
{
@@ -183,7 +183,7 @@ public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
183183
}
184184

185185
/**
186-
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
186+
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
187187
*/
188188
public function testConfigureQueryBuilderWithClosureReturningNonQueryBuilder()
189189
{

src/Symfony/Bridge/Propel1/Tests/Form/Type/TranslationCollectionTypeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testNotPresentTranslationsAdded()
9696
}
9797

9898
/**
99-
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
99+
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
100100
*/
101101
public function testNoArrayGiven()
102102
{
@@ -118,7 +118,7 @@ public function testNoArrayGiven()
118118
}
119119

120120
/**
121-
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
121+
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
122122
*/
123123
public function testNoDataClassAdded()
124124
{
@@ -131,7 +131,7 @@ public function testNoDataClassAdded()
131131
}
132132

133133
/**
134-
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
134+
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
135135
*/
136136
public function testNoLanguagesAdded()
137137
{
@@ -144,7 +144,7 @@ public function testNoLanguagesAdded()
144144
}
145145

146146
/**
147-
* @expectedException Symfony\Component\OptionsResolver\Exception\MissingOptionsException
147+
* @expectedException \Symfony\Component\OptionsResolver\Exception\MissingOptionsException
148148
*/
149149
public function testNoColumnsAdded()
150150
{

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getTestValidTrustedProxiesData()
6060
}
6161

6262
/**
63-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
63+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
6464
*/
6565
public function testInvalidTypeTrustedProxies()
6666
{
@@ -70,7 +70,7 @@ public function testInvalidTypeTrustedProxies()
7070
}
7171

7272
/**
73-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
73+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
7474
10000 */
7575
public function testInvalidValueTrustedProxies()
7676
{

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testRouter()
7373
}
7474

7575
/**
76-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
76+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
7777
*/
7878
public function testRouterRequiresResourceOption()
7979
{
@@ -211,7 +211,7 @@ public function testTranslator()
211211
}
212212

213213
/**
214-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
214+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
215215
*/
216216
public function testTemplatingRequiresAtLeastOneEngine()
217217
{

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
3434
);
3535

3636
/**
37-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
37+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
3838
*/
3939
public function testNoConfigForProvider()
4040
{
@@ -50,7 +50,7 @@ public function testNoConfigForProvider()
5050
}
5151

5252
/**
53-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
53+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
5454
*/
5555
public function testManyConfigForProvider()
5656
{

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Compiler/TwigLoaderPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testMapperPassWithTwoTaggedLoaders()
6969
}
7070

7171
/**
72-
* @expectedException Symfony\Component\DependencyInjection\Exception\LogicException
72+
* @expectedException \Symfony\Component\DependencyInjection\Exception\LogicException
7373
*/
7474
public function testMapperPassWithZeroTaggedLoaders()
7575
{

src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function setUp()
5757
}
5858

5959
/**
60-
* @expectedException Symfony\Component\HttpKernel\Exception\NotFoundHttpException
60+
* @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
6161
*/
6262
public function testGetNameOfInvalidTemplate()
6363
{

src/Symfony/Component/Config/Tests/Definition/ArrayNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class ArrayNodeTest extends \PHPUnit_Framework_TestCase
1717
{
1818
/**
19-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
19+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
2020
*/
2121
public function testNormalizeThrowsExceptionWhenFalseIsNotAllowed()
2222
{

src/Symfony/Component/Config/Tests/Definition/BooleanNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getValidValues()
3434

3535
/**
3636
* @dataProvider getInvalidValues
37-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
37+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
3838
*/
3939
public function testNormalizeThrowsExceptionOnInvalidValues($value)
4040
{

src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testAppendingSomeNode()
3434
}
3535

3636
/**
37-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
37+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
3838
* @dataProvider providePrototypeNodeSpecificCalls
3939
*/
4040
public function testPrototypeNodeSpecificOption($method, $args)
@@ -57,7 +57,7 @@ public function providePrototypeNodeSpecificCalls()
5757
}
5858

5959
/**
60-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
60+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
6161
*/
6262
public function testConcreteNodeSpecificOption()
6363
{
@@ -67,7 +67,7 @@ public function testConcreteNodeSpecificOption()
6767
}
6868

6969
/**
70-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
70+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
7171
*/
7272
public function testPrototypeNodesCantHaveADefaultValueWhenUsingDefaultChildren()
7373
{

src/Symfony/Component/Config/Tests/Definition/Builder/ExprBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testThenEmptyArrayExpression()
132132
}
133133

134134
/**
135-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
135+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
136136
*/
137137
public function testThenInvalid()
138138
{

src/Symfony/Component/Config/Tests/Definition/Builder/NumericNodeDefinitionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testIncoherentMaxAssertion()
3838
}
3939

4040
/**
41-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
41+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
4242
* @expectedExceptionMessage The value 4 is too small for path "foo". Should be greater than: 5
4343
*/
4444
public function testIntegerMinAssertion()
@@ -48,7 +48,7 @@ public function testIntegerMinAssertion()
4848
}
4949

5050
/**
51-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
51+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
5252
* @expectedExceptionMessage The value 4 is too big for path "foo". Should be less than: 3
5353
*/
5454
public function testIntegerMaxAssertion()
@@ -65,7 +65,7 @@ public function testIntegerValidMinMaxAssertion()
6565
}
6666

6767
/**
68-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
68+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
6969
* @expectedExceptionMessage The value 400 is too small for path "foo". Should be greater than: 500
7070
*/
7171
public function testFloatMinAssertion()
@@ -75,7 +75,7 @@ public function testFloatMinAssertion()
7575
}
7676

7777
/**
78-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
78+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
7979
* @expectedExceptionMessage The value 4.3 is too big for path "foo". Should be less than: 0.3
8080
*/
8181
public function testFloatMaxAssertion()

src/Symfony/Component/Config/Tests/Definition/EnumNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testConstructionWithOneValue()
3030
}
3131

3232
/**
33-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
33+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
3434
* @expectedExceptionMessage The value "foobar" is not allowed for path "foo". Permissible values: "foo", "bar"
3535
*/
3636
public function testFinalizeWithInvalidValue()

src/Symfony/Component/Config/Tests/Definition/FloatNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function getValidValues()
4040

4141
/**
4242
* @dataProvider getInvalidValues
43-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
43+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
4444
*/
4545
public function testNormalizeThrowsExceptionOnInvalidValues($value)
4646
{

src/Symfony/Component/Config/Tests/Definition/IntegerNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getValidValues()
3535

3636
/**
3737
* @dataProvider getInvalidValues
38-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
38+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
3939
*/
4040
public function testNormalizeThrowsExceptionOnInvalidValues($value)
4141
{

src/Symfony/Component/Config/Tests/Definition/MergeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class MergeTest extends \PHPUnit_Framework_TestCase
1717
{
1818
/**
19-
* @expectedException Symfony\Component\Config\Definition\Exception\ForbiddenOverwriteException
19+
* @expectedException \Symfony\Component\Config\Definition\Exception\ForbiddenOverwriteException
2020
*/
2121
public function testForbiddenOverwrite()
2222
{
@@ -92,7 +92,7 @@ public function testUnsetKey()
9292
}
9393

9494
/**
95-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
95+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
9696
*/
9797
public function testDoesNotAllowNewKeysInSubsequentConfigs()
9898
{

src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function getNumericKeysTests()
169169
}
170170

171171
/**
172-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
172+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
173173
* @expectedExceptionMessage The attribute "id" must be set for path "root.thing".
174174
*/
175175
public function testNonAssociativeArrayThrowsExceptionIfAttributeNotSet()

src/Symfony/Component/Config/Tests/Definition/ScalarNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function getValidValues()
4141

4242
/**
4343
* @dataProvider getInvalidValues
44-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidTypeException
44+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidTypeException
4545
*/
4646
public function testNormalizeThrowsExceptionOnInvalidValues($value)
4747
{

src/Symfony/Component/Config/Tests/Loader/DelegatingLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testLoad()
6969
}
7070

7171
/**
72-
* @expectedException Symfony\Component\Config\Exception\FileLoaderLoadException
72+
* @expectedException \Symfony\Component\Config\Exception\FileLoaderLoadException
7373
*/
7474
public function testLoadThrowsAnExceptionIfTheResourceCannotBeLoaded()
7575
{

src/Symfony/Component/CssSelector/Tests/TokenizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testTokenizeWithQuotedStrings()
3737
}
3838

3939
/**
40-
* @expectedException Symfony\Component\CssSelector\Exception\ParseException
40+
* @expectedException \Symfony\Component\CssSelector\Exception\ParseException
4141
*/
4242
public function testTokenizeInvalidString()
4343
{

src/Symfony/Component/DependencyInjection/Tests/Compiler/CheckExceptionOnInvalidReferenceBehaviorPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testProcess()
3131
}
3232

3333
/**
34-
* @expectedException Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
34+
* @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
3535
*/
3636
public function testProcessThrowsExceptionOnInvalidReference()
3737
{
@@ -46,7 +46,7 @@ public function testProcessThrowsExceptionOnInvalidReference()
4646
}
4747

4848
/**
49-
* @expectedException Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
49+
* @expectedException \Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
5050
*/
5151
public function testProcessThrowsExceptionOnInvalidReferenceFromInlinedDefinition()
5252
{

src/Symfony/Component/DependencyInjection/Tests/DefinitionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testMethodCalls()
9696
}
9797

9898
/**
99-
* @expectedException Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
99+
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
100100
* @expectedExceptionMessage Method name cannot be empty.
101101
*/
102102
public function testExceptionOnEmptyMethodCall()

0 commit comments

Comments
 (0)
0