Skip to content

Commit 5d16072

Browse files
committed
Fix (updated) code style
1 parent cbb9ee5 commit 5d16072

28 files changed

+237
-237
lines changed

tests/ClientTest.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ClientTest extends AbstractTest
1212
/**
1313
* @test
1414
*/
15-
public function it_can_get_and_set_the_base_url()
15+
public function itCanGetAndSetTheBaseUrl()
1616
{
1717
$client = new Client();
1818

@@ -24,7 +24,7 @@ public function it_can_get_and_set_the_base_url()
2424
/**
2525
* @test
2626
*/
27-
public function it_can_get_and_set_the_default_headers()
27+
public function itCanGetAndSetTheDefaultHeaders()
2828
{
2929
$client = new Client();
3030

@@ -55,7 +55,7 @@ public function it_can_get_and_set_the_default_headers()
5555
/**
5656
* @test
5757
*/
58-
public function it_builds_a_get_request()
58+
public function itBuildsAGetRequest()
5959
{
6060
$httpClient = new HttpMockClient();
6161
$client = new Client($httpClient);
@@ -79,7 +79,7 @@ public function it_builds_a_get_request()
7979
/**
8080
* @test
8181
*/
82-
public function it_builds_a_delete_request()
82+
public function itBuildsADeleteRequest()
8383
{
8484
$httpClient = new HttpMockClient();
8585
$client = new Client($httpClient);
@@ -103,7 +103,7 @@ public function it_builds_a_delete_request()
103103
/**
104104
* @test
105105
*/
106-
public function it_builds_a_patch_request()
106+
public function itBuildsAPatchRequest()
107107
{
108108
$httpClient = new HttpMockClient();
109109
$client = new Client($httpClient);
@@ -128,7 +128,7 @@ public function it_builds_a_patch_request()
128128
/**
129129
* @test
130130
*/
131-
public function it_builds_a_post_request()
131+
public function itBuildsAPostRequest()
132132
{
133133
$httpClient = new HttpMockClient();
134134
$client = new Client($httpClient);
@@ -153,7 +153,7 @@ public function it_builds_a_post_request()
153153
/**
154154
* @test
155155
*/
156-
public function it_builds_other_requests()
156+
public function itBuildsOtherRequests()
157157
{
158158
$httpClient = new HttpMockClient();
159159
$client = new Client($httpClient);
@@ -177,7 +177,7 @@ public function it_builds_other_requests()
177177
/**
178178
* @test
179179
*/
180-
public function it_builds_requests_with_a_string_as_body()
180+
public function itBuildsRequestsWithAStringAsBody()
181181
{
182182
$httpClient = new HttpMockClient();
183183
$client = new Client($httpClient);
@@ -192,7 +192,7 @@ public function it_builds_requests_with_a_string_as_body()
192192
/**
193193
* @test
194194
*/
195-
public function it_builds_requests_with_a_resource_as_body()
195+
public function itBuildsRequestsWithAResourceAsBody()
196196
{
197197
$httpClient = new HttpMockClient();
198198
$client = new Client($httpClient);
@@ -208,7 +208,7 @@ public function it_builds_requests_with_a_resource_as_body()
208208
/**
209209
* @test
210210
*/
211-
public function it_builds_requests_with_a_stream_as_body()
211+
public function itBuildsRequestsWithAStreamAsBody()
212212
{
213213
$httpClient = new HttpMockClient();
214214
$client = new Client($httpClient);
@@ -223,7 +223,7 @@ public function it_builds_requests_with_a_stream_as_body()
223223
/**
224224
* @test
225225
*/
226-
public function it_builds_requests_without_a_body()
226+
public function itBuildsRequestsWithoutABody()
227227
{
228228
$httpClient = new HttpMockClient();
229229
$client = new Client($httpClient);
@@ -238,7 +238,7 @@ public function it_builds_requests_without_a_body()
238238
/**
239239
* @test
240240
*/
241-
public function it_prepends_the_base_uri_if_the_endpoint_is_relative()
241+
public function itPrependsTheBaseUriIfTheEndpointIsRelative()
242242
{
243243
$baseUri = 'http://example.com/api';
244244
$endpoint = '/test/1';
@@ -255,7 +255,7 @@ public function it_prepends_the_base_uri_if_the_endpoint_is_relative()
255255
/**
256256
* @test
257257
*/
258-
public function it_does_not_prepend_the_base_uri_if_the_endpoint_is_already_absolute()
258+
public function itDoesNotPrependTheBaseUriIfTheEndpointIsAlreadyAbsolute()
259259
{
260260
$baseUri = 'http://example.com/api';
261261
$endpoint = 'http://foo.bar/test/1';

tests/Concerns/HasIdTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class HasIdTest extends TestCase
1010
/**
1111
* @test
1212
*/
13-
public function it_can_get_and_set_an_id()
13+
public function itCanGetAndSetAnId()
1414
{
1515
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasId $mock */
1616
$mock = $this->getMockForTrait(HasId::class);
@@ -24,7 +24,7 @@ public function it_can_get_and_set_an_id()
2424
/**
2525
* @test
2626
*/
27-
public function it_returns_a_boolean_indicating_if_it_has_an_id()
27+
public function itReturnsABooleanIndicatingIfItHasAnId()
2828
{
2929
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasId $mock */
3030
$mock = $this->getMockForTrait(HasId::class);

tests/Concerns/HasInitialTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class HasInitialTest extends TestCase
1010
/**
1111
* @test
1212
*/
13-
public function it_can_get_and_set_initial_attributes()
13+
public function itCanGetAndSetInitialAttributes()
1414
{
1515
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasInitial $mock */
1616
$mock = $this->getMockForTrait(HasInitial::class);
@@ -25,7 +25,7 @@ public function it_can_get_and_set_initial_attributes()
2525
/**
2626
* @test
2727
*/
28-
public function it_returns_a_boolean_indicating_if_it_has_initial_attributes()
28+
public function itReturnsABooleanIndicatingIfItHasInitialAttributes()
2929
{
3030
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasInitial $mock */
3131
$mock = $this->getMockForTrait(HasInitial::class);

tests/Concerns/HasLinksTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class HasLinksTest extends TestCase
1111
/**
1212
* @test
1313
*/
14-
public function it_can_get_and_set_links()
14+
public function itCanGetAndSetLinks()
1515
{
1616
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasLinks $mock */
1717
$mock = $this->getMockForTrait(HasLinks::class);

tests/Concerns/HasMetaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class HasMetaTest extends TestCase
1111
/**
1212
* @test
1313
*/
14-
public function it_can_get_and_set_meta()
14+
public function itCanGetAndSetMeta()
1515
{
1616
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasMeta $mock */
1717
$mock = $this->getMockForTrait(HasMeta::class);

tests/Concerns/HasRelationsTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class HasRelationsTest extends TestCase
1919
/**
2020
* @test
2121
*/
22-
public function it_can_get_and_set_an_item_as_relation()
22+
public function itCanGetAndSetAnItemAsRelation()
2323
{
2424
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
2525
$mock = $this->getMockForTrait(HasRelations::class);
@@ -36,7 +36,7 @@ public function it_can_get_and_set_an_item_as_relation()
3636
/**
3737
* @test
3838
*/
39-
public function it_can_get_and_set_a_collection_as_relation()
39+
public function itCanGetAndSetACollectionAsRelation()
4040
{
4141
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
4242
$mock = $this->getMockForTrait(HasRelations::class);
@@ -53,7 +53,7 @@ public function it_can_get_and_set_a_collection_as_relation()
5353
/**
5454
* @test
5555
*/
56-
public function it_can_get_and_set_null_as_relation()
56+
public function itCanGetAndSetNullAsRelation()
5757
{
5858
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
5959
$mock = $this->getMockForTrait(HasRelations::class);
@@ -69,7 +69,7 @@ public function it_can_get_and_set_null_as_relation()
6969
/**
7070
* @test
7171
*/
72-
public function it_does_not_set_false_as_relation()
72+
public function itDoesNotSetFalseAsRelation()
7373
{
7474
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
7575
$mock = $this->getMockForTrait(HasRelations::class);
@@ -84,7 +84,7 @@ public function it_does_not_set_false_as_relation()
8484
/**
8585
* @test
8686
*/
87-
public function it_sets_the_links_on_the_relation()
87+
public function itSetsTheLinksOnTheRelation()
8888
{
8989
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
9090
$mock = $this->getMockForTrait(HasRelations::class);
@@ -100,7 +100,7 @@ public function it_sets_the_links_on_the_relation()
100100
/**
101101
* @test
102102
*/
103-
public function it_sets_the_meta_on_the_relation()
103+
public function itSetsTheMetaOnTheRelation()
104104
{
105105
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
106106
$mock = $this->getMockForTrait(HasRelations::class);
@@ -116,7 +116,7 @@ public function it_sets_the_meta_on_the_relation()
116116
/**
117117
* @test
118118
*/
119-
public function it_can_get_all_relations()
119+
public function itCanGetAllRelations()
120120
{
121121
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
122122
$mock = $this->getMockForTrait(HasRelations::class);
@@ -131,7 +131,7 @@ public function it_can_get_all_relations()
131131
/**
132132
* @test
133133
*/
134-
public function it_can_get_a_relation_value()
134+
public function itCanGetARelationValue()
135135
{
136136
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
137137
$mock = $this->getMockForTrait(HasRelations::class);
@@ -145,7 +145,7 @@ public function it_can_get_a_relation_value()
145145
/**
146146
* @test
147147
*/
148-
public function it_returns_null_when_getting_an_unexisting_relation_value()
148+
public function itReturnsNullWhenGettingAnUnexistingRelationValue()
149149
{
150150
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
151151
$mock = $this->getMockForTrait(HasRelations::class);
@@ -156,7 +156,7 @@ public function it_returns_null_when_getting_an_unexisting_relation_value()
156156
/**
157157
* @test
158158
*/
159-
public function it_returns_a_boolean_indicating_if_it_has_a_relation()
159+
public function itReturnsABooleanIndicatingIfItHasARelation()
160160
{
161161
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
162162
$mock = $this->getMockForTrait(HasRelations::class);
@@ -172,7 +172,7 @@ public function it_returns_a_boolean_indicating_if_it_has_a_relation()
172172
/**
173173
* @test
174174
*/
175-
public function it_can_unset_a_relation()
175+
public function itCanUnsetARelation()
176176
{
177177
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
178178
$mock = $this->getMockForTrait(HasRelations::class);
@@ -189,7 +189,7 @@ public function it_can_unset_a_relation()
189189
/**
190190
* @test
191191
*/
192-
public function it_can_define_a_has_one_relation()
192+
public function itCanDefineAHasOneRelation()
193193
{
194194
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
195195
$mock = $this->getMockForTrait(HasRelations::class);
@@ -203,7 +203,7 @@ public function it_can_define_a_has_one_relation()
203203
/**
204204
* @test
205205
*/
206-
public function it_can_define_a_has_one_relation_with_the_calling_method_as_fallback_name()
206+
public function itCanDefineAHasOneRelationWithTheCallingMethodAsFallbackName()
207207
{
208208
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
209209
$mock = $this->getMockForTrait(HasRelations::class);
@@ -217,7 +217,7 @@ public function it_can_define_a_has_one_relation_with_the_calling_method_as_fall
217217
/**
218218
* @test
219219
*/
220-
public function it_can_define_a_has_many_relation()
220+
public function itCanDefineAHasManyRelation()
221221
{
222222
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
223223
$mock = $this->getMockForTrait(HasRelations::class);
@@ -231,7 +231,7 @@ public function it_can_define_a_has_many_relation()
231231
/**
232232
* @test
233233
*/
234-
public function it_can_define_a_has_many_relation_with_the_calling_method_as_fallback_name()
234+
public function itCanDefineAHasManyRelationWithTheCallingMethodAsFallbackName()
235235
{
236236
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
237237
$mock = $this->getMockForTrait(HasRelations::class);
@@ -245,7 +245,7 @@ public function it_can_define_a_has_many_relation_with_the_calling_method_as_fal
245245
/**
246246
* @test
247247
*/
248-
public function it_can_define_a_morph_to_relation()
248+
public function itCanDefineAMorphToRelation()
249249
{
250250
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
251251
$mock = $this->getMockForTrait(HasRelations::class);
@@ -259,7 +259,7 @@ public function it_can_define_a_morph_to_relation()
259259
/**
260260
* @test
261261
*/
262-
public function it_can_define_a_morph_to_relation_with_the_calling_method_as_fallback_name()
262+
public function itCanDefineAMorphToRelationWithTheCallingMethodAsFallbackName()
263263
{
264264
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
265265
$mock = $this->getMockForTrait(HasRelations::class);
@@ -273,7 +273,7 @@ public function it_can_define_a_morph_to_relation_with_the_calling_method_as_fal
273273
/**
274274
* @test
275275
*/
276-
public function it_can_define_a_morph_to_many_relation()
276+
public function itCanDefineAMorphToManyRelation()
277277
{
278278
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
279279
$mock = $this->getMockForTrait(HasRelations::class);
@@ -287,7 +287,7 @@ public function it_can_define_a_morph_to_many_relation()
287287
/**
288288
* @test
289289
*/
290-
public function it_can_define_a_morph_to_many_relation_with_the_calling_method_as_fallback_name()
290+
public function itCanDefineAMorphToManyRelationWithTheCallingMethodAsFallbackName()
291291
{
292292
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasRelations $mock */
293293
$mock = $this->getMockForTrait(HasRelations::class);

tests/Concerns/HasTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class HasTypeTest extends TestCase
1010
/**
1111
* @test
1212
*/
13-
public function it_can_get_and_set_a_type()
13+
public function itCanGetAndSetAType()
1414
{
1515
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasType $mock */
1616
$mock = $this->getMockForTrait(HasType::class);
@@ -24,7 +24,7 @@ public function it_can_get_and_set_a_type()
2424
/**
2525
* @test
2626
*/
27-
public function it_returns_a_boolean_indicating_if_it_has_a_type()
27+
public function itReturnsABooleanIndicatingIfItHasAType()
2828
{
2929
/** @var \PHPUnit\Framework\MockObject\MockObject&\Swis\JsonApi\Client\Concerns\HasType $mock */
3030
$mock = $this->getMockForTrait(HasType::class);

0 commit comments

Comments
 (0)