Skip to content

Commit 732a363

Browse files
committed
minor #20043 @ExpectedException expects FQCN (ro0NL)
This PR was merged into the 2.8 branch. Discussion ---------- @ExpectedException expects FQCN | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | comma-separated list of tickets fixed by the PR, if any | License | MIT | Doc PR | reference to the documentation PR, if any See #20028 Almost there :) Commits ------- 526b852 expectedException expects FQCN
2 parents 8acf80f + 526b852 commit 732a363

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function testSilentHelp()
176176
}
177177

178178
/**
179-
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
179+
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
180180
* @expectedExceptionMessage The command "foofoo" does not exist.
181181
*/
182182
public function testGetInvalidCommand()
@@ -212,7 +212,7 @@ public function testFindNamespaceWithSubnamespaces()
212212
}
213213

214214
/**
215-
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
215+
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
216216
* @expectedExceptionMessage The namespace "f" is ambiguous (foo, foo1).
217217
*/
218218
public function testFindAmbiguousNamespace()
@@ -225,7 +225,7 @@ public function testFindAmbiguousNamespace()
225225
}
226226

227227
/**
228-
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
228+
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
229229
* @expectedExceptionMessage There are no commands defined in the "bar" namespace.
230230
*/
231231
public function testFindInvalidNamespace()
@@ -235,7 +235,7 @@ public function testFindInvalidNamespace()
235235
}
236236

237237
/**
238-
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
238+
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
239239
* @expectedExceptionMessage Command "foo1" is not defined
240240
*/
241241
public function testFindUniqueNameButNamespaceName()
@@ -313,7 +313,7 @@ public function testFindCommandWithMissingNamespace()
313313

314314
/**
315315
* @dataProvider provideInvalidCommandNamesSingle
316-
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
316+
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
317317
* @expectedExceptionMessage Did you mean this
318318
*/
319319
public function testFindAlternativeExceptionMessageSingle($name)
@@ -463,7 +463,7 @@ public function testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()
463463
}
464464

465465
/**
466-
* @expectedException Symfony\Component\Console\Exception\CommandNotFoundException
466+
* @expectedException \Symfony\Component\Console\Exception\CommandNotFoundException
467467
* @expectedExceptionMessage Command "foo::bar" is not defined.
468468
*/
469469
public function testFindWithDoubleColonInNameThrowsException()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function testExecuteMethodNeedsToBeOverridden()
257257
}
258258

259259
/**
260-
* @expectedException Symfony\Component\Console\Exception\InvalidOptionException
260+
* @expectedException \Symfony\Component\Console\Exception\InvalidOptionException
261261
* @expectedExceptionMessage The "--bar" option does not exist.
262262
*/
263263
public function testRunWithInvalidOption()

src/Symfony/Component/Console/Tests/Helper/TableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ public function testColumnStyle()
632632
}
633633

634634
/**
635-
* @expectedException Symfony\Component\Console\Exception\InvalidArgumentException
635+
* @expectedException \Symfony\Component\Console\Exception\InvalidArgumentException
636636
* @expectedExceptionMessage Style "absent" is not defined.
637637
*/
638638
public function testIsNotDefinedStyleException()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function testSetIsDeprecated()
194194

195195
/**
196196
* @dataProvider invalidDeprecationMessageProvider
197-
* @expectedException Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
197+
* @expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
198198
*/
199199
public function testSetDeprecatedWithInvalidDeprecationTemplate($message)
200200
{

src/Symfony/Component/Serializer/Tests/Encoder/ChainDecoderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testDecode()
6868
}
6969

7070
/**
71-
* @expectedException Symfony\Component\Serializer\Exception\RuntimeException
71+
* @expectedException \Symfony\Component\Serializer\Exception\RuntimeException
7272
*/
7373
public function testDecodeUnsupportedFormat()
7474
{

src/Symfony/Component/Serializer/Tests/Encoder/ChainEncoderTest.php

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

7171
/**
72-
* @expectedException Symfony\Component\Serializer\Exception\RuntimeException
72+
* @expectedException \Symfony\Component\Serializer\Exception\RuntimeException
7373
*/
7474
public function testEncodeUnsupportedFormat()
7575
{

src/Symfony/Component/Serializer/Tests/Encoder/JsonDecodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function decodeProvider()
5757
/**
5858
* @requires function json_last_error_msg
5959
* @dataProvider decodeProviderException
60-
* @expectedException Symfony\Component\Serializer\Exception\UnexpectedValueException
60+
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
6161
*/
6262
public function testDecodeWithException($value)
6363
{

src/Symfony/Component/Serializer/Tests/Encoder/JsonEncodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function encodeProvider()
5050

5151
/**
5252
* @requires function json_last_error_msg
53-
* @expectedException Symfony\Component\Serializer\Exception\UnexpectedValueException
53+
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
5454
*/
5555
public function testEncodeWithError()
5656
{

0 commit comments

Comments
 (0)