8000 Merge branch 'master' of github.com:loekiedepo/Symfony-API-Example · Lucky-Loek/Symfony-API-Example@9f164b9 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Commit 9f164b9

Browse files
author
Loek van der Linde
committed
Merge branch 'master' of github.com:loekiedepo/Symfony-API-Example
2 parents b1c18f3 + 895d402 commit 9f164b9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/AppBundle/EventDispatcher/Listener/InvalidRequestArgumentListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function onInvalidRequestArgumentException(GetResponseForExceptionEvent $
1717
}
1818

1919
$errorMessage = [
20-
'code' => $exception->getCode(),
20+
'code' => $exception->getCode(),
2121
'message' => $exception->getMessage(),
2222
];
2323

tests/AppBundle/Entity/CarTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace tests\AppBundle\Entity;
44

55
use AppBundle\Entity\Car;
6-
use InvalidArgumentException;
76

87
class CarTest extends \PHPUnit_Framework_TestCase
98
{
@@ -17,7 +16,7 @@ public function shouldCreateCarOnValidInput()
1716

1817
/**
1918
* @test
20-
* @expectedException InvalidArgumentException
19+
* @expectedException \InvalidArgumentException
2120
*/
2221
public function shouldThrowExceptionOnInvalidInput()
2322
{
@@ -35,7 +34,7 @@ public function shouldUpdateWithValidData()
3534

3635
/**
3736
* @test
38-
* @expectedException InvalidArgumentException
37+
* @expectedException \InvalidArgumentException
3938
*/
4039
public function shouldThrowExceptionOnUpdateWithInvalidData()
4140
{

0 commit comments

Comments
 (0)
0