Skip to content

Commit d77338d

Browse files
Merge pull request #13 from thinkverse/feat/pestphp
Convert all tests to PestPHP
2 parents bb174d1 + 3d6e985 commit d77338d

16 files changed

+670
-905
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4343
4444
- name: Execute Tests
45-
run: ./vendor/bin/phpunit --testdox
45+
run: ./vendor/bin/pest

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"nunomaduro/collision": "^5.3",
2424
"orchestra/testbench": "^6.15",
2525
"phpunit/phpunit": "^9.3",
26+
"pestphp/pest": "^1.9",
2627
"vimeo/psalm": "^4.4"
2728
},
2829
"autoload": {
@@ -37,8 +38,8 @@
3738
},
3839
"scripts": {
3940
"psalm": "./vendor/bin/psalm",
40-
"test": "./vendor/bin/phpunit --testdox",
41-
"test-coverage": "./vendor/bin/phpunit --coverage-html coverage"
41+
"test": "./vendor/bin/pest",
42+
"test-coverage": "./vendor/bin/pest --coverage"
4243
},
4344
"config": {
4445
"sort-packages": true,

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
<logging>
3737
<junit outputFile="build/report.junit.xml"/>
3838
</logging>
39-
</phpunit>
39+
</phpunit>

src/Concerns/HasFeatures.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public function joinGroup(...$groups): self
112112
groups: Arr::flatten($groups)
113113
);
114114

115-
dd($groups);
115+
// TODO? Fix groups? Maybe?
116+
// dd($groups);
116117

117118
if (is_null($groups)) {
118119
return $this;

tests/BladeDirectivesTest.php

Lines changed: 0 additions & 142 deletions
This file was deleted.

tests/FeatureArtisanTest.php

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)