Skip to content

Commit a39d1f9

Browse files
committed
fixed @ExpectedException class names
1 parent bbf97ec commit a39d1f9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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()

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
{

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
{

0 commit comments

Comments
 (0)