8000 fixed @expectedException class names · symfony/symfony@8d69bb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d69bb5

Browse files
committed
fixed @ExpectedException class names
1 parent 3c5a863 commit 8d69bb5

38 files changed

+63
-63
lines changed

src/Symfony/Bundle/TwigBundle/Tests/Loader/FilesystemLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testExists()
5454
}
5555

5656
/**
57-
* @expectedException Twig_Error_Loader
57+
* @expectedException \Twig_Error_Loader
5858
*/
5959
public function testTwigErrorIfLocatorThrowsInvalid()
6060
{
@@ -78,7 +78,7 @@ public function testTwigErrorIfLocatorThrowsInvalid()
7878
}
7979

8080
/**
81-
* @expectedException Twig_Error_Loader
81+
* @expectedException \Twig_Error_Loader
8282
*/
8383
public function testTwigErrorIfLocatorReturnsFalse()
8484
{

src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function getFixNamespaceDeclarationsDataWithoutTokenizer()
189189
}
190190

191191
/**
192-
* @expectedException InvalidArgumentException
192+
* @expectedException \InvalidArgumentException
193193
*/
194194
public function testUnableToLoadClassException()
195195
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testNormalizeThrowsExceptionWhenFalseIsNotAllowed()
2525
}
2626

2727
/**
28-
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
28+
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
2929
* @expectedExceptionMessage Unrecognized options "foo" under "root"
3030
*/
3131
public function testExceptionThrownOnUnrecognizedChild()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testResolve()
4343
}
4444

4545
/**
46-
* @expectedException Symfony\Component\Config\Exception\FileLoaderLoadException
46+
* @expectedException \Symfony\Component\Config\Exception\FileLoaderLoadException
4747
*/
4848
public function testResolveWhenResolverCannotFindLoader()
4949
{

src/Symfony/Component/Console/Tests/Command/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function testSetCodeWithNonClosureCallable()
288288
}
289289

290290
/**
291-
* @expectedException InvalidArgumentException
291+
* @expectedException \InvalidArgumentException
292292
* @expectedExceptionMessage Invalid callable provided to Command::setCode.
293293
*/
294294
public function testSetCodeWithNonCallable()

src/Symfony/Component/Console/Tests/Formatter/OutputFormatterStyleStackTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testPopNotLast()
5959
}
6060

6161
/**
62-
* @expectedException InvalidArgumentException
62+
* @expectedException \InvalidArgumentException
6363
*/
6464
public function testInvalidPop()
6565
{

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public function testMerge()
410410

411411
/**
412412
* @covers Symfony\Component\DependencyInjection\ContainerBuilder::merge
413-
* @expectedException LogicException
413+
* @expectedException \LogicException
414414
*/
415415
public function testMergeLogicException()
416416
{
@@ -537,7 +537,7 @@ public function testPrivateServiceUser()
537537
}
538538

539539
/**
540-
* @expectedException BadMethodCallException
540+
* @expectedException \BadMethodCallException
541541
*/
542542
public function testThrowsExceptionWhenSetServiceOnAFrozenContainer()
543543
{
@@ -549,7 +549,7 @@ public function testThrowsExceptionWhenSetServiceOnAFrozenContainer()
549549
}
550550

551551
/**
552-
* @expectedException BadMethodCallException
552+
* @expectedException \BadMethodCallException
553553
*/
554554
public function testThrowsExceptionWhenAddServiceOnAFrozenContainer()
555555
{
@@ -578,7 +578,7 @@ public function testNoExceptionWhenSetSyntheticServiceOnAFrozenContainer()
578578
}
579579

580580
/**
581-
* @expectedException BadMethodCallException
581+
* @expectedException \BadMethodCallException
582582
*/
583583
public function testThrowsExceptionWhenSetDefinitionOnAFrozenContainer()
584584
{

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

Lines changed: 2 additions & 2 deletions
1241
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testSetArgument()
7171
}
7272

7373
/**
74-
* @expectedException InvalidArgumentException
74+
* @expectedException \InvalidArgumentException
7575
*/
7676
public function testReplaceArgumentShouldRequireIntegerIndex()
7777
{
@@ -96,7 +96,7 @@ public function testReplaceArgument()
9696
}
9797

9898
/**
99-
* @expectedException OutOfBoundsException
99+
* @expectedException \OutOfBoundsException
100100
*/
101101
public function testGetArgumentShouldCheckBounds()
102102
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function testSetArgument()
251251
}
252252

253253
/**
254-
* @expectedException OutOfBoundsException
254+
* @expectedException \OutOfBoundsException
255255
*/
256256
public function testGetArgumentShouldCheckBounds()
257257
{
@@ -262,7 +262,7 @@ public function testGetArgumentShouldCheckBounds()
262262
}
263263

264264
/**
265-
* @expectedException OutOfBoundsException
265+
* @expectedException \OutOfBoundsException
266266
*/
267267
public function testReplaceArgumentShouldCheckBounds()
268268
{

src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testDumpOptimizationString()
8181
}
8282

8383
/**
84-
* @expectedException InvalidArgumentException
84+
* @expectedException \InvalidArgumentException
8585
*/
8686
public function testExportParameters()
8787
{
@@ -121,7 +121,7 @@ public function testAddService()
121121
}
122122

123123
/**
124-
* @expectedException InvalidArgumentException
124+
* @expectedException \InvalidArgumentException
125125
* @expectedExceptionMessage Service id "bar$" cannot be converted to a valid PHP method name.
126126
*/
127127
public function testAddServiceInvalidServiceId()

src/Symfony/Component/Form/Tests/FormFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function testCreateNamedBuilderDoesNotOverrideExistingDataOption()
278278
}
279279

280280
/**
281-
* @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
281+
* @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException
282282
* @expectedExceptionMessage Expected argument of type "string, Symfony\Component\Form\ResolvedFormTypeInterface or Symfony\Component\Form\FormTypeInterface", "stdClass" given
283283
*/
284284
public function testCreateNamedBuilderThrowsUnderstandableException()

src/Symfony/Component/HttpFoundation/Tests/CookieTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function invalidNames()
3838

3939
/**
4040
* @dataProvider invalidNames
41-
* @expectedException InvalidArgumentException
41+
* @expectedException \InvalidArgumentException
4242
* @covers Symfony\Component\HttpFoundation\Cookie::__construct
4343
*/
4444
public function testInstantiationThrowsExceptionIfCookieNameContainsInvalidCharacters($name)
@@ -47,7 +47,7 @@ public function testInstantiationThrowsExceptionIfCookieNameContainsInvalidChara
4747
}
4848

4949
/**
50-
* @expectedException InvalidArgumentException
50+
* @expectedException \InvalidArgumentException
5151
*/
5252
public function testInvalidExpiration()
5353
{

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ public function testGetPort()
749749
}
750750

751751
/**
752-
* @expectedException RuntimeException
752+
* @expectedException \RuntimeException
753753
*/
754754
public function testGetHostWithFakeHttpHostValue()
755755
{
@@ -879,7 +879,7 @@ public function testGetContentReturnsResource()
879879
}
880880

881881
/**
882-
* @expectedException LogicException
882+
* @expectedException \LogicException
883883
* @dataProvider getContentCantBeCalledTwiceWithResourcesProvider
884884
*/
885885
public function testGetContentCantBeCalledTwiceWithResources($first, $second)

src/Symfony/Component/HttpFoundation/Tests/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ public function testSetContent($content)
634634
}
635635

636636
/**
637-
* @expectedException UnexpectedValueException
637+
* @expectedException \UnexpectedValueException
638638
* @dataProvider invalidContentProvider
639639
*/
640640
public function testSetContentInvalid($content)

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ protected function setUp()
4949
}
5050

5151
/**
52-
* @expectedException InvalidArgumentException
52+
* @expectedException \InvalidArgumentException
5353
*/
5454
public function testConstructorShouldThrowExceptionForInvalidMongo()
5555
{
5656
new MongoDbSessionHandler(new \stdClass(), $this->options);
5757
}
5858

5959
/**
60-
* @expectedException InvalidArgumentException
60+
* @expectedException \InvalidArgumentException
6161
*/
6262
public function testConstructorShouldThrowExceptionForMissingOptions()
6363
{

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockArraySessionStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testGetId()
9797
}
9898

9999
/**
100-
* @expectedException RuntimeException
100+
* @expectedException \RuntimeException
101101
*/
102102
public function testUnstartedSave()
103103
{

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MockFileSessionStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testMultipleInstances()
107107
}
108108

109109
/**
110-
* @expectedException RuntimeException
110+
* @expectedException \RuntimeException
111111
*/
112112
public function testSaveWithoutStart()
113113
{

src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php

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

3636
/**
37-
* @expectedException InvalidArgumentException
37+
* @expectedException \InvalidArgumentException
3838
*/
3939
public function testRenderWithUnknownRenderer()
4040
{
@@ -44,7 +44,7 @@ public function testRenderWithUnknownRenderer()
4444
}
4545

4646
/**
47-
* @expectedException RuntimeException
47+
* @expectedException \RuntimeException
4848
* @expectedExceptionMessage Error when rendering "http://localhost/" (Status code is 404).
4949
*/
5050
public function testDeliverWithUnsuccessfulResponse()

src/Symfony/Component/HttpKernel/Tests/HttpCache/EsiTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function testProcessEscapesPhpTags()
133133
}
134134

135135
/**
136-
* @expectedException RuntimeException
136+
* @expectedException \RuntimeException
137137
*/
138138
public function testProcessWhenNoSrcInAnEsi()
139139
{
@@ -173,7 +173,7 @@ public function testHandle()
173173
}
174174

175175
/**
176-
* @expectedException RuntimeException
176+
* @expectedException \RuntimeException
177177
*/
178178
public function testHandleWhenResponseIsNot200()
179179
{

src/Symfony/Component/HttpKernel/Tests/HttpKernelTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function setUp()
3535
}
3636

3737
/**
38-
* @expectedException RuntimeException
38+
* @expectedException \RuntimeException
3939
*/
4040
public function testHandleWhenControllerThrowsAnExceptionAndRawIsTrue()
4141
{
@@ -45,7 +45,7 @@ public function testHandleWhenControllerThrowsAnExceptionAndRawIsTrue()
4545
}
4646

4747
/**
48-
* @expectedException RuntimeException
48+
* @expectedException \RuntimeException
4949
*/
5050
public function testHandleWhenControllerThrowsAnExceptionAndRawIsFalseAndNoListenerIsRegistered()
5151
{
@@ -147,7 +147,7 @@ public function testHandleWhenNoControllerIsFound()
147147
}
148148

149149
/**
150-
* @expectedException LogicException
150+
* @expectedException \LogicException
151151
*/
152152
public function testHandleWhenTheControllerIsNotACallable()
153153
{
@@ -199,7 +199,7 @@ public function testHandleWhenTheControllerIsAStaticArray()
199199
}
200200

201201
/**
202-
* @expectedException LogicException
202+
* @expectedException \LogicException
203203
*/
204204
public function testHandleWhenTheControllerDoesNotReturnAResponse()
205205
{

src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class StubLocaleTest extends LocaleTestCase
1818
{
1919
/**
20-
* @expectedException InvalidArgumentException
20+
* @expectedException \InvalidArgumentException
2121
*/
2222
public function testGetDisplayCountriesWithUnsupportedLocale()
2323
{
@@ -37,7 +37,7 @@ public function testGetCountries()
3737
}
3838

3939
/**
40-
* @expectedException InvalidArgumentException
40+
* @expectedException \InvalidArgumentException
4141
*/
4242
public function testGetDisplayLanguagesWithUnsupportedLocale()
4343
{
@@ -57,7 +57,7 @@ public function testGetLanguages()
5757
}
5858

5959
/**
60-
* @expectedException InvalidArgumentException
60+
* @expectedException \InvalidArgumentException
6161
*/
6262
public function testGetCurrenciesDataWithUnsupportedLocale()
6363
{
@@ -92,7 +92,7 @@ public function testGetCurrencies()
9292
}
9393

9494
/**
95-
* @expectedException InvalidArgumentException
95+
* @expectedException \InvalidArgumentException
9696
*/
9797
public function testGetDisplayLocalesWithUnsupportedLocale()
9898
{

0 commit comments

Comments
 (0)
0