Skip to content

Commit b1159a0

Browse files
chore: Add phpunit.xml configuration to VCS
1 parent b32c60d commit b1159a0

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
coverage: none
3333

3434
- name: Install Composer dependencies
35-
run: composer install --no-interaction --prefer-dist
35+
run: composer update --no-interaction --prefer-dist
3636

3737
- name: Run Tests
3838
run: composer run test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/composer.lock
44

55
# PHPUnit
6-
/phpunit.xml
76
.phpunit.result.cache
87

98
# PHP CS Fixer

phpunit.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
>
7+
<testsuites>
8+
<testsuite name="Feature">
9+
<directory suffix="Test.php">./tests/Feature</directory>
10+
</testsuite>
11+
</testsuites>
12+
<source>
13+
<include>
14+
<directory suffix=".php">./app</directory>
15+
<directory suffix=".php">./src</directory>
16+
</include>
17+
</source>
18+
<php>
19+
<env name="APP_ENV" value="testing"/>
20+
<env name="BCRYPT_ROUNDS" value="4"/>
21+
<env name="CACHE_STORE" value="array"/>
22+
<env name="DB_CONNECTION" value="sqlite"/>
23+
<env name="DB_DATABASE" value=":memory:"/>
24+
<env name="MAIL_MAILER" value="array"/>
25+
<env name="QUEUE_CONNECTION" value="sync"/>
26+
<env name="SESSION_DRIVER" value="array"/>
27+
<env name="APP_KEY" value="base64:djwPuw5vRI2ZApMzsYc6n+t8x+y2Re17k4h9kPutKlY="/>
28+
<env name="MCP_SERVER_NAME" value="Test MCP Laravel Server"/>
29+
<env name="MCP_SERVER_VERSION" value="0.1-test"/>
30+
<env name="MCP_AUTO_DISCOVER" value="true"/>
31+
<env name="MCP_DISCOVERY_PATH" value="App/Mcp"/>
32+
<env name="MCP_CACHE_STORE" value="array"/>
33+
<env name="MCP_CACHE_TTL" value="3600"/>
34+
<env name="MCP_HTTP_INTEGRATED_ENABLED" value="true"/>
35+
</php>
36+
</phpunit>

0 commit comments

Comments
 (0)