You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/Definition/ScalarNodeTest.php
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,12 @@ public function testNormalizeThrowsExceptionWithoutHint()
63
63
{
64
64
$node = newScalarNode('test');
65
65
66
-
$this->setExpectedException('Symfony\Component\Config\Definition\Exception\InvalidTypeException', 'Invalid type for path "test". Expected scalar, but got array.');
$this->expectExceptionMessage('Invalid type for path "test". Expected scalar, but got array.');
69
+
} else {
70
+
$this->setExpectedException('Symfony\Component\Config\Definition\Exception\InvalidTypeException', 'Invalid type for path "test". Expected scalar, but got array.');
71
+
}
67
72
68
73
$node->normalize(array());
69
74
}
@@ -73,7 +78,12 @@ public function testNormalizeThrowsExceptionWithErrorMessage()
73
78
$node = newScalarNode('test');
74
79
$node->setInfo('"the test value"');
75
80
76
-
$this->setExpectedException('Symfony\Component\Config\Definition\Exception\InvalidTypeException', "Invalid type for path \"test\". Expected scalar, but got array.\nHint: \"the test value\"");
$this->expectExceptionMessage("Invalid type for path \"test\". Expected scalar, but got array.\nHint: \"the test value\"");
84
+
} else {
85
+
$this->setExpectedException('Symfony\Component\Config\Definition\Exception\InvalidTypeException', "Invalid type for path \"test\". Expected scalar, but got array.\nHint: \"the test value\"");
0 commit comments