Skip to content

Commit a30b040

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Use ::class keyword when possible
2 parents db6c789 + ee5caa6 commit a30b040

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Tests/Debug/OptionsResolverIntrospectorTest.php

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

3939
public function testGetDefaultThrowsOnNoConfiguredValue()
4040
{
41-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
41+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
4242
$this->expectExceptionMessage('No default value was set for the "foo" option.');
4343
$resolver = new OptionsResolver();
4444
$resolver->setDefined($option = 'foo');
@@ -49,7 +49,7 @@ public function testGetDefaultThrowsOnNoConfiguredValue()
4949

5050
public function testGetDefaultThrowsOnNotDefinedOption()
5151
{
52-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
52+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
5353
$this->expectExceptionMessage('The option "foo" does not exist.');
5454
$resolver = new OptionsResolver();
5555

@@ -69,7 +69,7 @@ public function testGetLazyClosures()
6969

7070
public function testGetLazyClosuresThrowsOnNoConfiguredValue()
7171
{
72-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
72+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
7373
$this->expectExceptionMessage('No lazy closures were set for the "foo" option.');
7474
$resolver = new OptionsResolver();
7575
$resolver->setDefined($option = 'foo');
@@ -80,7 +80,7 @@ public function testGetLazyClosuresThrowsOnNoConfiguredValue()
8080

8181
public function testGetLazyClosuresThrowsOnNotDefinedOption()
8282
{
83-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
83+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
8484
$this->expectExceptionMessage('The option "foo" does not exist.');
8585
$resolver = new OptionsResolver();
8686

@@ -100,7 +100,7 @@ public function testGetAllowedTypes()
100100

101101
public function testGetAllowedTypesThrowsOnNoConfiguredValue()
102102
{
103-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
103+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
104104
$this->expectExceptionMessage('No allowed types were set for the "foo" option.');
105105
$resolver = new OptionsResolver();
106106
$resolver->setDefined($option = 'foo');
@@ -111,7 +111,7 @@ public function testGetAllowedTypesThrowsOnNoConfiguredValue()
111111

112112
public function testGetAllowedTypesThrowsOnNotDefinedOption()
113113
{
114-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
114+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
115115
$this->expectExceptionMessage('The option "foo" does not exist.');
116116
$resolver = new OptionsResolver();
117117

@@ -131,7 +131,7 @@ public function testGetAllowedValues()
131131

132132
public function testGetAllowedValuesThrowsOnNoConfiguredValue()
133133
{
134-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
134+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
135135
$this->expectExceptionMessage('No allowed values were set for the "foo" option.');
136136
$resolver = new OptionsResolver();
137137
$resolver->setDefined($option = 'foo');
@@ -142,7 +142,7 @@ public function testGetAllowedValuesThrowsOnNoConfiguredValue()
142142

143143
public function testGetAllowedValuesThrowsOnNotDefinedOption()
144144
{
145-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
145+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
146146
$this->expectExceptionMessage('The option "foo" does not exist.');
147147
$resolver = new OptionsResolver();
148148

@@ -162,7 +162,7 @@ public function testGetNormalizer()
162162

163163
public function testGetNormalizerThrowsOnNoConfiguredValue()
164164
{
165-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
165+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
166166
$this->expectExceptionMessage('No normalizer was set for the "foo" option.');
167167
$resolver = new OptionsResolver();
168168
$resolver->setDefined($option = 'foo');
@@ -173,7 +173,7 @@ public function testGetNormalizerThrowsOnNoConfiguredValue()
173173

174174
public function testGetNormalizerThrowsOnNotDefinedOption()
175175
{
176-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
176+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
177177
$this->expectExceptionMessage('The option "foo" does not exist.');
178178
$resolver = new OptionsResolver();
179179

@@ -194,7 +194,7 @@ public function testGetNormalizers()
194194

195195
public function testGetNormalizersThrowsOnNoConfiguredValue()
196196
{
197-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
197+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
198198
$this->expectExceptionMessage('No normalizer was set for the "foo" option.');
199199
$resolver = new OptionsResolver();
200200
$resolver->setDefined('foo');
@@ -205,7 +205,7 @@ public function testGetNormalizersThrowsOnNoConfiguredValue()
205205

206206
public function testGetNormalizersThrowsOnNotDefinedOption()
207207
{
208-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
208+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
209209
$this->expectExceptionMessage('The option "foo" does not exist.');
210210
$resolver = new OptionsResolver();
211211

@@ -269,7 +269,7 @@ public function testGetClosureDeprecation()
269269

270270
public function testGetDeprecationMessageThrowsOnNoConfiguredValue()
271271
{
272-
$this->expectException('Symfony\Component\OptionsResolver\Exception\NoConfigurationException');
272+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\NoConfigurationException::class);
273273
$this->expectExceptionMessage('No deprecation was set for the "foo" option.');
274274
$resolver = new OptionsResolver();
275275
$resolver->setDefined('foo');
@@ -280,7 +280,7 @@ public function testGetDeprecationMessageThrowsOnNoConfiguredValue()
280280

281281
public function testGetDeprecationMessageThrowsOnNotDefinedOption()
282282
{
283-
$this->expectException('Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException');
283+
$this->expectException(\Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException::class);
284284
$this->expectExceptionMessage('The option "foo" does not exist.');
285285
$resolver = new OptionsResolver();
286286

0 commit comments

Comments
 (0)