Skip to content

Commit 22c169f

Browse files
tomschlickgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 5678f21 commit 22c169f

File tree

4 files changed

+18
-27
lines changed

4 files changed

+18
-27
lines changed

tests/IntEnum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ enum IntEnum: int
1414
case TWO = 2;
1515
case THREE = 3;
1616
}
17-

tests/LaravelEnumsTest.php

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,37 @@
22

33
declare(strict_types=1);
44

5-
65
use ReturnEarly\LaravelEnums\Tests\IntEnum;
76
use ReturnEarly\LaravelEnums\Tests\StringEnum;
87

9-
test('int enums can be called statically for a value', function() {
8+
test('int enums can be called statically for a value', function () {
109
$this->assertEquals(1, IntEnum::ONE());
1110
});
1211

13-
14-
test('string enums can be called statically for a value', function() {
12+
test('string enums can be called statically for a value', function () {
1513
$this->assertEquals('A', StringEnum::A());
1614
});
1715

18-
19-
test('an enum can be checked with is', function() {
16+
test('an enum can be checked with is', function () {
2017
$this->assertTrue(IntEnum::ONE->is(IntEnum::ONE));
2118
$this->assertFalse(IntEnum::ONE->is(IntEnum::TWO));
2219
});
2320

24-
25-
test('an enum can be checked with is not', function() {
21+
test('an enum can be checked with is not', function () {
2622
$this->assertTrue(IntEnum::ONE->isNot(IntEnum::TWO));
2723
$this->assertFalse(IntEnum::ONE->isNot(IntEnum::ONE));
2824
});
2925

30-
31-
test('an int enum can check if its value is between others', function() {
26+
test('an int enum can check if its value is between others', function () {
3227
$this->assertTrue(IntEnum::TWO->isBetween(IntEnum::ONE, IntEnum::THREE));
3328
$this->assertFalse(IntEnum::ONE->isBetween(IntEnum::TWO, IntEnum::THREE));
3429
});
3530

36-
37-
test('an int enum can check if the collection contains its value', function() {
31+
test('an int enum can check if the collection contains its value', function () {
3832
$this->assertTrue(IntEnum::contains('2'));
3933
});
4034

41-
test('an enum can manifest as a collection', function() {
35+
test('an enum can manifest as a collection', function () {
4236
$this->assertEquals(
4337
[
4438
IntEnum::ONE,
@@ -49,7 +43,7 @@
4943
);
5044
});
5145

52-
test('an enum can get its values as a collection', function() {
46+
test('an enum can get its values as a collection', function () {
5347
$this->assertEquals(
5448
[
5549
1,
@@ -60,7 +54,7 @@
6054
);
6155
});
6256

63-
test('an enum can get its names as a collection', function() {
57+
test('an enum can get its names as a collection', function () {
6458
$this->assertEquals(
6559
[
6660
'ONE',
@@ -71,7 +65,7 @@
7165
);
7266
});
7367

74-
test('an enum can get its values as a select array', function() {
68+
test('an enum can get its values as a select array', function () {
7569
$this->assertEquals(
7670
[
7771
1 => 'ONE',
@@ -82,38 +76,38 @@
8276
);
8377
});
8478

85-
test('an enum can get its values between two others excluding those others', function() {
79+
test('an enum can get its values between two others excluding those others', function () {
8680
expect(IntEnum::valuesBetween(IntEnum::ONE, IntEnum::THREE, false)->toArray())
8781
->toHaveCount(1);
8882
});
8983

90-
test('an enum can get its values between two others including those others', function() {
84+
test('an enum can get its values between two others including those others', function () {
9185
expect(IntEnum::valuesBetween(IntEnum::ONE, IntEnum::THREE, true)->toArray())
9286
->toHaveCount(3);
9387
});
9488

95-
test('an enum can check if it is any of a list of enums', function() {
89+
test('an enum can check if it is any of a list of enums', function () {
9690
$this->assertTrue(IntEnum::ONE->isAny([IntEnum::ONE, IntEnum::TWO]));
9791
$this->assertFalse(IntEnum::ONE->isAny([IntEnum::TWO, IntEnum::THREE]));
9892
});
9993

100-
test('an enum can be created from a value', function() {
94+
test('an enum can be created from a value', function () {
10195
$this->assertEquals(IntEnum::ONE, IntEnum::fromValue(1));
10296
});
10397

104-
test('an enum can be created from another enum', function() {
98+
test('an enum can be created from another enum', function () {
10599
$this->assertEquals(IntEnum::ONE, IntEnum::fromValue(IntEnum::ONE));
106100
});
107101

108-
test('an enum can get its name', function() {
102+
test('an enum can get its name', function () {
109103
$this->assertEquals('ONE', IntEnum::ONE->name());
110104
});
111105

112-
test('an enum can get its value', function() {
106+
test('an enum can get its value', function () {
113107
$this->assertEquals(1, IntEnum::ONE->value());
114108
});
115109

116-
test('a missing method throws a bad method call exception', function() {
110+
test('a missing method throws a bad method call exception', function () {
117111
$this->expectException(BadMethodCallException::class);
118112
IntEnum::FOUR();
119113
});

tests/StringEnum.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ enum StringEnum: string
1414
case B = 'B';
1515
case C = 'C';
1616
}
17-

tests/TestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ protected function getPackageProviders($app): array
1616

1717
public function getEnvironmentSetUp($app)
1818
{
19-
2019
}
2120
}

0 commit comments

Comments
 (0)