Skip to content

Commit 6aa492c

Browse files
committed
Remove pest plugins 🧹
1 parent f7f9dc4 commit 6aa492c

File tree

8 files changed

+9
-13
lines changed

8 files changed

+9
-13
lines changed

composer.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
"nunomaduro/larastan": "^2.2",
3131
"orchestra/testbench": "^7.4|^8.0",
3232
"pestphp/pest": "^1.16",
33-
"pestphp/pest-plugin-global-assertions": "^1.0",
34-
"pestphp/pest-plugin-laravel": "^1.1",
35-
"pestphp/pest-plugin-mock": "^1.0",
36-
"pestphp/pest-plugin-parallel": "^0.2.0",
3733
"phpunit/phpunit": "^9.5",
3834
"roave/backward-compatibility-check": "^7.0|^8.0",
3935
"roave/infection-static-analysis-plugin": "^1.25"

tests/Unit/Complex/ClassStringTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
try {
1818
new ClassString('');
1919
} catch (ValidationException $e) {
20-
assertSame(__('Class string cannot be empty.'), $e->getMessage());
20+
$this->assertSame(__('Class string cannot be empty.'), $e->getMessage());
2121
}
2222
});
2323

@@ -126,7 +126,7 @@
126126
test('can extend protected methods in class string', function () {
127127
$text = new TestClassString('Exception');
128128
$text->validate();
129-
assertSame('Exception', $text->value());
129+
$this->assertSame('Exception', $text->value());
130130
});
131131

132132
class TestClassString extends ClassString

tests/Unit/Complex/NameTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
test('can extend protected methods in name', function () {
106106
$name = new TestName('Name');
107-
assertSame('Name', $name->value());
107+
$this->assertSame('Name', $name->value());
108108
});
109109

110110
class TestName extends Name

tests/Unit/Complex/PhoneTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
try {
7171
new Phone('123');
7272
} catch (ValidationException $e) {
73-
assertSame(__('Your phone number is invalid.'), $e->getMessage());
73+
$this->assertSame(__('Your phone number is invalid.'), $e->getMessage());
7474
}
7575
});
7676

@@ -158,7 +158,7 @@
158158

159159
test('can extend protected methods in phone', function () {
160160
$phone = new TestPhone('+38 000 000 00 00');
161-
assertSame('+38 000 000 00 00', $phone->value());
161+
$this->assertSame('+38 000 000 00 00', $phone->value());
162162
});
163163

164164
class TestPhone extends Phone

tests/Unit/Complex/UuidTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
$uuid = (string) Str::uuid();
115115
$text = new TestUuid($uuid);
116116
$text->validate();
117-
assertSame($uuid, $text->value());
117+
$this->assertSame($uuid, $text->value());
118118
});
119119

120120
class TestUuid extends Uuid

tests/Unit/Primitive/BooleanTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163

164164
test('can extend protected methods in boolean', function () {
165165
$bool = new TestBoolean('true');
166-
assertIsBool($bool->value());
166+
$this->assertIsBool($bool->value());
167167
});
168168

169169
class TestBoolean extends Boolean

tests/Unit/ValueObjectCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434

3535
$fakeOption = new InputOption('value-object', null, InputOption::VALUE_NONE, 'Create a value object');
3636

37-
assertEquals($option, $fakeOption);
37+
$this->assertEquals($option, $fakeOption);
3838
});

tests/Unit/ValueObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
test('toString casts value to string', function () {
2424
$vo = new TestVO;
25-
assertSame('100', $vo->toString());
25+
$this->assertSame('100', $vo->toString());
2626
});
2727

2828
class TestVO extends ValueObject

0 commit comments

Comments
 (0)