Skip to content

Commit 915410d

Browse files
Merge pull request Ashishkumbhar01#59 from CodeWithSushil/2.x
Update
2 parents 25bac69 + 3ff06e2 commit 915410d

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

composer.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"autoload-dev": {
2828
"psr-4": {
29-
"Supabase\\Tests\\": "tests/"
29+
"Tests\\": "tests/"
3030
}
3131
},
3232
"support": {
@@ -51,6 +51,17 @@
5151
"url": "https://opencollective.com/CodeWithSushil"
5252
}
5353
],
54+
"scripts": {
55+
"post-root-package-install": [
56+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
57+
],
58+
"test:unit": "pest --colors=always --parallel",
59+
"test:types": "phpstan analyse --ansi",
60+
"test": [
61+
"@test:unit",
62+
"@test:types"
63+
]
64+
},
5465
"minimum-stability": "dev",
5566
"prefer-stable": true,
5667
"config": {

phpstan.neon.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src
5+
6+
reportUnmatchedIgnoredErrors: true

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Supabase\Tests;
3+
namespace Tests;
44

55
use PHPUnit\Framework\TestCase as BaseTestCase;
66

0 commit comments

Comments
 (0)