@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | public function testInvalidJsonShouldThrowInvalidArgumentExceptionError() |
41 | 41 | { |
42 | 42 | $this->setExpectedExceptionRegExp( |
43 | - \InvalidArgumentException::class, |
|
44 | - '/^Invalid submitted json data, error (.*) : (.*), json : invalid json$/' |
|
43 | + \InvalidArgumentException::class, |
|
44 | + '/^Invalid submitted json data, error (.*) : (.*), json : invalid json$/' |
|
45 | 45 | ); |
46 | 46 | $json = 'invalid json'; |
47 | 47 | |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | public function testEventWithoutStringShouldThrowInvalidArgumentExceptionError() |
56 | 56 | { |
57 | 57 | $this->setExpectedExceptionRegExp( |
58 | - \InvalidArgumentException::class, |
|
59 | - '/^Invalid argument: the submitted variable must be a string when you enable the json_format option.$/' |
|
58 | + \InvalidArgumentException::class, |
|
59 | + '/^Invalid argument: the submitted variable must be a string when you enable the json_format option.$/' |
|
60 | 60 | ); |
61 | 61 | $json = ['invalid json']; |
62 | 62 |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | public function testSubmitInvalidJsonShouldThrowException() |
54 | 54 | { |
55 | 55 | $this->setExpectedExceptionRegExp( |
56 | - 'InvalidArgumentException', |
|
57 | - '/^Invalid submitted json data, error (.*) : (.*), json : invalid json$/' |
|
56 | + 'InvalidArgumentException', |
|
57 | + '/^Invalid submitted json data, error (.*) : (.*), json : invalid json$/' |
|
58 | 58 | ); |
59 | 59 | $this->form->submit('invalid json'); |
60 | 60 | } |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | public function testSubmitWithoutStringShouldThrowException() |
71 | 71 | { |
72 | 72 | $this->setExpectedExceptionRegExp( |
73 | - 'InvalidArgumentException', |
|
74 | - '/^Invalid argument: the submitted variable must be a string when you enable the json_format option.$/' |
|
73 | + 'InvalidArgumentException', |
|
74 | + '/^Invalid argument: the submitted variable must be a string when you enable the json_format option.$/' |
|
75 | 75 | ); |
76 | 76 | $this->form->submit(['invalid json']); |
77 | 77 | } |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | public function testRequestWithInvalidJsonShouldTHrowException() |
89 | 89 | { |
90 | 90 | $this->setExpectedExceptionRegExp( |
91 | - 'InvalidArgumentException', |
|
92 | - '/^Invalid submitted json data, error (.*) : (.*), json : invalid json$/' |
|
91 | + 'InvalidArgumentException', |
|
92 | + '/^Invalid submitted json data, error (.*) : (.*), json : invalid json$/' |
|
93 | 93 | ); |
94 | 94 | $request = $this->getRequest('invalid json'); |
95 | 95 | $this->form->handleRequest($request); |
@@ -98,8 +98,8 @@ discard block |
||
98 | 98 | public function testRequestWithoutStringShouldThrowException() |
99 | 99 | { |
100 | 100 | $this->setExpectedExceptionRegExp( |
101 | - 'InvalidArgumentException', |
|
102 | - '/^Invalid argument: the submitted variable must be a string when you enable the json_format option.$/' |
|
101 | + 'InvalidArgumentException', |
|
102 | + '/^Invalid argument: the submitted variable must be a string when you enable the json_format option.$/' |
|
103 | 103 | ); |
104 | 104 | $request = $this->getRequest(['test']); |
105 | 105 | $this->form->handleRequest($request); |