File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed
Config/Tests/Definition/Builder
Serializer/Tests/Normalizer Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function createCachePool($defaultLifetime = 0)
32
32
}
33
33
34
34
/**
35
- * @expectedException Exception
35
+ * @expectedException \ Exception
36
36
* @expectedExceptionMessage OK bar
37
37
*/
38
38
public function testProxyfiedItem ()
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function testCreateConnection()
46
46
47
47
/**
48
48
* @dataProvider provideFailedCreateConnection
49
- * @expectedException Symfony\Component\Cache\Exception\InvalidArgumentException
49
+ * @expectedException \ Symfony\Component\Cache\Exception\InvalidArgumentException
50
50
* @expectedExceptionMessage Redis connection failed
51
51
*/
52
52
public function testFailedCreateConnection ($ dsn )
@@ -65,7 +65,7 @@ public function provideFailedCreateConnection()
65
65
66
66
/**
67
67
* @dataProvider provideInvalidCreateConnection
68
- * @expectedException Symfony\Component\Cache\Exception\InvalidArgumentException
68
+ * @expectedException \ Symfony\Component\Cache\Exception\InvalidArgumentException
69
69
* @expectedExceptionMessage Invalid Redis DSN
70
70
*/
71
71
public function testInvalidCreateConnection ($ dsn )
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testValidKey()
22
22
23
23
/**
24
24
* @dataProvider provideInvalidKey
25
- * @expectedException Symfony\Component\Cache\Exception\InvalidArgumentException
25
+ * @expectedException \ Symfony\Component\Cache\Exception\InvalidArgumentException
26
26
* @expectedExceptionMessage Cache key
27
27
*/
28
28
public function testInvalidKey ($ key )
Original file line number Diff line number Diff line change 16
16
class BooleanNodeDefinitionTest extends \PHPUnit_Framework_TestCase
17
17
{
18
18
/**
19
- * @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
19
+ * @expectedException \ Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
20
20
* @expectedExceptionMessage ->cannotBeEmpty() is not applicable to BooleanNodeDefinition.
21
21
*/
22
22
public function testCannotBeEmptyThrowsAnException ()
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function testFloatValidMinMaxAssertion()
92
92
}
93
93
94
94
/**
95
- * @expectedException Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
95
+ * @expectedException \ Symfony\Component\Config\Definition\Exception\InvalidDefinitionException
96
96
* @expectedExceptionMessage ->cannotBeEmpty() is not applicable to NumericNodeDefinition.
97
97
*/
98
98
public function testCannotBeEmptyThrowsAnException ()
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \PropertyInfo \Extractor \PhpDocExtractor ;
16
16
use Symfony \Component \PropertyInfo \Extractor \ReflectionExtractor ;
17
17
use Symfony \Component \PropertyInfo \PropertyInfoExtractor ;
18
- use Symfony \Component \Serializer \Exception \UnexpectedValueException ;
19
18
use Symfony \Component \Serializer \NameConverter \CamelCaseToSnakeCaseNameConverter ;
20
19
use Symfony \Component \Serializer \Normalizer \ArrayDenormalizer ;
21
20
use Symfony \Component \Serializer \Normalizer \DateTimeNormalizer ;
@@ -546,7 +545,7 @@ public function testDenomalizeRecursive()
546
545
}
547
546
548
547
/**
549
- * @expectedException UnexpectedValueException
548
+ * @expectedException \Symfony\Component\Serializer\Exception\ UnexpectedValueException
550
549
* @expectedExceptionMessage The type of the "date" attribute for class "Symfony\Component\Serializer\Tests\Normalizer\ObjectOuter" must be one of "DateTimeInterface" ("string" given).
551
550
*/
552
551
public function testRejectInvalidType ()
@@ -558,7 +557,7 @@ public function testRejectInvalidType()
558
557
}
559
558
560
559
/**
561
- * @expectedException UnexpectedValueException
560
+ * @expectedException \Symfony\Component\Serializer\Exception\ UnexpectedValueException
562
561
* @expectedExceptionMessage The type of the key "a" must be "int" ("string" given).
563
562
*/
564
563
public function testRejectInvalidKey ()
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ public function testParseUnquotedAsteriskFollowedByAComment()
225
225
226
226
/**
227
227
* @dataProvider getReservedIndicators
228
- * @expectedException Symfony\Component\Yaml\Exception\ParseException
228
+ * @expectedException \ Symfony\Component\Yaml\Exception\ParseException
229
229
* @expectedExceptionMessage cannot start a plain scalar; you need to quote the scalar.
230
230
*/
231
231
public function testParseUnquotedScalarStartingWithReservedIndicator ($ indicator )
@@ -240,7 +240,7 @@ public function getReservedIndicators()
240
240
241
241
/**
242
242
* @dataProvider getScalarIndicators
243
- * @expectedException Symfony\Component\Yaml\Exception\ParseException
243
+ * @expectedException \ Symfony\Component\Yaml\Exception\ParseException
244
244
* @expectedExceptionMessage cannot start a plain scalar; you need to quote the scalar.
245
245
*/
246
246
public function testParseUnquotedScalarStartingWithScalarIndicator ($ indicator )
You can’t perform that action at this time.
0 commit comments