Skip to content

Commit 85434ec

Browse files
committed
IHF: Test names minor fixes.
1 parent 3a1b5ed commit 85434ec

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/json/IsJsonTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,122 +3,122 @@
33
class IsJsonTest extends TestCase
44
{
55
/** @test */
6-
public function it_returns_false_with_null_passed()
6+
public function it_returns_false_for_null()
77
{
88
$this->assertFalse(is_json(null));
99
}
1010

1111
/** @test */
12-
public function it_returns_false_with_boolean_true_passed()
12+
public function it_returns_false_for_boolean_true()
1313
{
1414
$this->assertFalse(is_json(true));
1515
}
1616

1717
/** @test */
18-
public function it_returns_false_with_boolean_false_passed()
18+
public function it_returns_false_for_boolean_false()
1919
{
2020
$this->assertFalse(is_json(false));
2121
}
2222

2323
/** @test */
24-
public function it_returns_false_with_integer_passed()
24+
public function it_returns_false_for_integer()
2525
{
2626
$this->assertFalse(is_json(123));
2727
}
2828

2929
/** @test */
30-
public function it_returns_false_with_float_passed()
30+
public function it_returns_false_for_float()
3131
{
3232
$this->assertFalse(is_json(123.45));
3333
}
3434

3535
/** @test */
36-
public function it_returns_false_with_empty_array_passed()
36+
public function it_returns_false_for_empty_array()
3737
{
3838
$this->assertFalse(is_json([]));
3939
}
4040

4141
/** @test */
42-
public function it_returns_false_with_non_empty_array_passed()
42+
public function it_returns_false_for_non_empty_array()
4343
{
4444
$this->assertFalse(is_json(['foo' => 'bar']));
4545
}
4646

4747
/** @test */
48-
public function it_returns_false_with_object_passed()
48+
public function it_returns_false_for_object()
4949
{
5050
$this->assertFalse(is_json(new StdClass()));
5151
}
5252

5353
/** @test */
54-
public function it_returns_false_with_an_empty_string_passed()
54+
public function it_returns_false_for_an_empty_string()
5555
{
5656
$this->assertFalse(is_json(''));
5757
}
5858

5959
/** @test */
60-
public function it_returns_false_with_non_json_string_passed()
60+
public function it_returns_false_for_non_json_string()
6161
{
6262
$this->assertFalse(is_json('non-json string'));
6363
}
6464

6565
/** @test */
66-
public function it_returns_false_with_non_json_string_and_second_argument_passed()
66+
public function it_returns_false_for_non_json_string_and_second_argument_passed()
6767
{
6868
$this->assertFalse(is_json('non-json string', true));
6969
}
7070

7171
/** @test */
72-
public function it_returns_true_with_json_encoded_null_passed()
72+
public function it_returns_true_for_json_encoded_null()
7373
{
7474
$json = json_encode(null);
7575
$this->assertTrue(is_json($json));
7676
}
7777

7878
/** @test */
79-
public function it_returns_true_with_json_encoded_boolean_true_passed()
79+
public function it_returns_true_for_json_encoded_boolean_true()
8080
{
8181
$json = json_encode(true);
8282
$this->assertTrue(is_json($json));
8383
}
8484

8585
/** @test */
86-
public function it_returns_true_with_json_encoded_boolean_false_passed()
86+
public function it_returns_true_for_json_encoded_boolean_false()
8787
{
8888
$json = json_encode(false);
8989
$this->assertTrue(is_json($json));
9090
}
9191

9292
/** @test */
93-
public function it_returns_true_with_json_encoded_integer_passed()
93+
public function it_returns_true_for_json_encoded_integer()
9494
{
9595
$json = json_encode(123);
9696
$this->assertTrue(is_json($json));
9797
}
9898

9999
/** @test */
100-
public function it_returns_true_with_json_encoded_float_passed()
100+
public function it_returns_true_for_json_encoded_float()
101101
{
102102
$json = json_encode(123.45);
103103
$this->assertTrue(is_json($json));
104104
}
105105

106106
/** @test */
107-
public function it_returns_true_with_json_encoded_array_passed()
107+
public function it_returns_true_for_json_encoded_array()
108108
{
109109
$json = json_encode(['foo' => 'bar']);
110110
$this->assertTrue(is_json($json));
111111
}
112112

113113
/** @test */
114-
public function it_returns_true_with_json_encoded_object_passed()
114+
public function it_returns_true_for_json_encoded_object()
115115
{
116116
$json = json_encode((object) ['foo' => 'bar', 'baz' => 'bax']);
117117
$this->assertTrue(is_json($json));
118118
}
119119

120120
/** @test */
121-
public function it_returns_true_with_json_encoded_string_passed()
121+
public function it_returns_true_for_json_encoded_string()
122122
{
123123
$json = json_encode('string to encode');
124124
$this->assertTrue(is_json($json));

0 commit comments

Comments
 (0)