Skip to content

Commit 8078ec0

Browse files
new start
1 parent 0673632 commit 8078ec0

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"vlucas/phpdotenv": "^5.6"
1616
},
1717
"require-dev": {
18+
"laravel/pint": "^1.22",
1819
"phpstan/phpstan": "^2.1",
1920
"phpstan/phpstan-phpunit": "^2.0",
2021
"phpunit/phpunit": "^12.2"
@@ -58,9 +59,11 @@
5859
],
5960
"test:unit": "phpunit",
6061
"test:type": "phpstan analyse --ansi --no-progress",
62+
"test:lint": "pint",
6163
"test": [
6264
"@test:type",
63-
"@test:unit"
65+
"@test:unit",
66+
"@test:lint"
6467
]
6568
},
6669
"minimum-stability": "dev",

phpunit.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
cacheDirectory=".phpunit.cache"
6+
executionOrder="depends,defects"
7+
requireCoverageMetadata="true"
8+
beStrictAboutCoverageMetadata="true"
9+
beStrictAboutOutputDuringTests="true"
10+
displayDetailsOnPhpunitDeprecations="true"
11+
failOnPhpunitDeprecation="true"
12+
failOnRisky="true"
13+
failOnWarning="true"
14+
colors="true">
15+
<testsuites>
16+
<testsuite name="default">
17+
<directory>tests</directory>
18+
</testsuite>
19+
</testsuites>
20+
21+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
22+
<include>
23+
<directory>src</directory>
24+
</include>
25+
</source>
26+
</phpunit>

src/Client.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Supabase;
6+
7+
class Client
8+
{
9+
protected string $url;
10+
11+
protected string $apiKey;
12+
13+
public function __construct(string $url, string $key)
14+
{
15+
$this->url = $url;
16+
$this->apiKey = $key;
17+
}
18+
}

0 commit comments

Comments
 (0)