Skip to content

Commit dbfd8ff

Browse files
committed
test: change test method names
Add the method name to test.
1 parent ccd52d1 commit dbfd8ff

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/system/Test/TestResponseTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function testGetJSON()
305305
$this->assertSame($formatter->format(['foo' => 'bar']), $this->testResponse->getJSON());
306306
}
307307

308-
public function testEmptyJSON()
308+
public function testGetJSONEmptyJSON()
309309
{
310310
$this->getTestResponse('<h1>Hello World</h1>');
311311
$this->response->setJSON('', true);
@@ -314,7 +314,7 @@ public function testEmptyJSON()
314314
$this->assertSame('""', $this->testResponse->getJSON());
315315
}
316316

317-
public function testFalseJSON()
317+
public function testGetJSONFalseJSON()
318318
{
319319
$this->getTestResponse('<h1>Hello World</h1>');
320320
$this->response->setJSON(false, true);
@@ -323,7 +323,7 @@ public function testFalseJSON()
323323
$this->assertSame('false', $this->testResponse->getJSON());
324324
}
325325

326-
public function testTrueJSON()
326+
public function testGetJSONTrueJSON()
327327
{
328328
$this->getTestResponse('<h1>Hello World</h1>');
329329
$this->response->setJSON(true, true);
@@ -332,7 +332,7 @@ public function testTrueJSON()
332332
$this->assertSame('true', $this->testResponse->getJSON());
333333
}
334334

335-
public function testInvalidJSON()
335+
public function testGetJSONInvalidJSON()
336336
{
337337
$tmp = ' test " case ';
338338
$this->getTestResponse('<h1>Hello World</h1>');
@@ -350,7 +350,7 @@ public function testGetXML()
350350
$this->assertSame($formatter->format(['foo' => 'bar']), $this->testResponse->getXML());
351351
}
352352

353-
public function testJsonFragment()
353+
public function testAssertJSONFragment()
354354
{
355355
$this->getTestResponse([
356356
'config' => [
@@ -383,7 +383,7 @@ public function testAssertJSONFragmentFailsGracefullyWhenNotGivenJson()
383383
$this->testResponse->assertJSONFragment(['foo' => 'bar']);
384384
}
385385

386-
public function testJsonExact()
386+
public function testAssertJsonExactArray()
387387
{
388388
$data = [
389389
'config' => [
@@ -397,7 +397,7 @@ public function testJsonExact()
397397
$this->testResponse->assertJSONExact($data);
398398
}
399399

400-
public function testJsonExactString()
400+
public function testAssertJsonExactString()
401401
{
402402
$data = [
403403
'config' => [

0 commit comments

Comments
 (0)