@@ -63,7 +63,7 @@ public function testRequestWithInvalidContentTypes(): void
63
63
$ object = TypeString::class;
64
64
65
65
$ request = $ this ->getRequest ('fail ' , $ content );
66
- $ result = $ this ->dataMapper ->request ($ request , $ object );
66
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
67
67
68
68
$ this ->assertNull ($ result );
69
69
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -79,7 +79,7 @@ public function testRequestWithValidContentTypeJson(): void
79
79
$ object = TypeString::class;
80
80
81
81
$ request = $ this ->getRequest ('application/json ' , $ content );
82
- $ result = $ this ->dataMapper ->request ($ request , $ object );
82
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
83
83
84
84
$ this ->assertNull ($ this ->dataMapper ->getErrorMessage ());
85
85
$ this ->assertEquals (MapStatusEnum::SUCCESS , $ this ->dataMapper ->getMapStatusEnum ());
@@ -95,7 +95,7 @@ public function testRequestWithEmptyContentTypeJson(): void
95
95
$ object = TypeString::class;
96
96
97
97
$ request = $ this ->getRequest ('application/json ' , $ content );
98
- $ result = $ this ->dataMapper ->request ($ request , $ object );
98
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
99
99
100
100
$ this ->assertNull ($ result );
101
101
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -111,7 +111,7 @@ public function testRequestWithEmptyContentTypeJsonAndForceInstance(): void
111
111
$ object = TypeString::class;
112
112
113
113
$ request = $ this ->getRequest ('application/json ' , $ content );
114
- $ result = $ this ->dataMapper ->request ($ request , $ object , [], true );
114
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object , [], true );
115
115
116
116
$ this ->assertNull ($ result );
117
117
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -127,7 +127,7 @@ public function testRequestWithValidContentTypeNeon(): void
127
127
$ object = TypeString::class;
128
128
129
129
$ request = $ this ->getRequest ('application/neon ' , $ content );
130
- $ result = $ this ->dataMapper ->request ($ request , $ object );
130
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
131
131
132
132
$ this ->assertNull ($ this ->dataMapper ->getErrorMessage ());
133
133
$ this ->assertEquals (MapStatusEnum::SUCCESS , $ this ->dataMapper ->getMapStatusEnum ());
@@ -143,7 +143,7 @@ public function testRequestWithEmptyContentTypeNeon(): void
143
143
$ object = TypeString::class;
144
144
145
145
$ request = $ this ->getRequest ('application/neon ' , $ content );
146
- $ result = $ this ->dataMapper ->request ($ request , $ object );
146
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
147
147
148
148
$ this ->assertNull ($ result );
149
149
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -159,7 +159,7 @@ public function testRequestWithEmptyContentTypeNeonAndForceInstance(): void
159
159
$ object = TypeString::class;
160
160
161
161
$ request = $ this ->getRequest ('application/neon ' , $ content );
162
- $ result = $ this ->dataMapper ->request ($ request , $ object , [], true );
162
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object , [], true );
163
163
164
164
$ this ->assertNull ($ result );
165
165
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -176,7 +176,7 @@ public function testRequestWithValidContentTypeXml(): void
176
176
$ object = TypeString::class;
177
177
178
178
$ request = $ this ->getRequest ('application/xml ' , $ content );
179
- $ result = $ this ->dataMapper ->request ($ request , $ object );
179
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
180
180
181
181
$ this ->assertNull ($ this ->dataMapper ->getErrorMessage ());
182
182
$ this ->assertEquals (MapStatusEnum::SUCCESS , $ this ->dataMapper ->getMapStatusEnum ());
@@ -192,7 +192,7 @@ public function testRequestWithEmptyContentTypeXml(): void
192
192
$ object = TypeString::class;
193
193
194
194
$ request = $ this ->getRequest ('application/xml ' , $ content );
195
- $ result = $ this ->dataMapper ->request ($ request , $ object );
195
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
196
196
197
197
$ this ->assertNull ($ result );
198
198
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -208,7 +208,7 @@ public function testRequestWithEmptyContentTypeXmlAndForceInstance(): void
208
208
$ object = TypeString::class;
209
209
210
210
$ request = $ this ->getRequest ('application/xml ' , $ content );
211
- $ result = $ this ->dataMapper ->request ($ request , $ object , [], true );
211
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object , [], true );
212
212
213
213
$ this ->assertNull ($ result );
214
214
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -224,7 +224,7 @@ public function testRequestWithValidContentTypeYaml(): void
224
224
$ object = TypeString::class;
225
225
226
226
$ request = $ this ->getRequest ('application/yaml ' , $ content );
227
- $ result = $ this ->dataMapper ->request ($ request , $ object );
227
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
228
228
229
229
$ this ->assertNull ($ this ->dataMapper ->getErrorMessage ());
230
230
$ this ->assertEquals (MapStatusEnum::SUCCESS , $ this ->dataMapper ->getMapStatusEnum ());
@@ -240,7 +240,7 @@ public function testRequestWithEmptyContentTypeYaml(): void
240
240
$ object = TypeString::class;
241
241
242
242
$ request = $ this ->getRequest ('application/yaml ' , $ content );
243
- $ result = $ this ->dataMapper ->request ($ request , $ object );
243
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object );
244
244
245
245
$ this ->assertNull ($ result );
246
246
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
@@ -256,7 +256,7 @@ public function testRequestWithEmptyContentTypeYamlAndForceInstance(): void
256
256
$ object = TypeString::class;
257
257
258
258
$ request = $ this ->getRequest ('application/yaml ' , $ content );
259
- $ result = $ this ->dataMapper ->request ($ request , $ object , [], true );
259
+ $ result = $ this ->dataMapper ->tryRequest ($ request , $ object , [], true );
260
260
261
261
$ this ->assertNull ($ result );
262
262
$ this ->assertEquals (MapStatusEnum::ERROR , $ this ->dataMapper ->getMapStatusEnum ());
0 commit comments