Skip to content

Commit 9bc0c01

Browse files
committed
Ah! x6
1 parent 562bcda commit 9bc0c01

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

phpunit.xml.dist

+28-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6-
>
7-
<testsuites>
8-
<testsuite name="Test Suite">
9-
<directory suffix="Test.php">./tests</directory>
10-
</testsuite>
11-
</testsuites>
12-
<coverage processUncoveredFiles="true">
13-
<include>
14-
<directory suffix=".php">./src</directory>
15-
</include>
16-
<exclude>
17-
<directory suffix=".php">./tests</directory>
18-
<directory suffix=".php">./src/Facades</directory>
19-
<directory suffix=".php">./src/Log</directory>
20-
<file>./src/NutgramServiceProvider.php</file>
21-
<file>./src/Console/RunCommand.php</file>
22-
<file>./src/Console/BaseMakeCommand.php</file>
23-
<file>./src/Mixins/MixinUtils.php</file>
24-
</exclude>
25-
</coverage>
26-
<php>
27-
<env name="TELEGRAM_TOKEN" value="TELEGRAM_TOKEN_HERE" force="true"/>
28-
</php>
6+
cacheDirectory=".phpunit.cache">
7+
8+
<testsuites>
9+
<testsuite name="Test Suite">
10+
<directory suffix="Test.php">./tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
14+
<php>
15+
<env name="TELEGRAM_TOKEN" value="TELEGRAM_TOKEN_HERE" force="true"/>
16+
</php>
17+
18+
<source>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
<exclude>
23+
<directory suffix=".php">./tests</directory>
24+
<directory suffix=".php">./src/Facades</directory>
25+
<directory suffix=".php">./src/Log</directory>
26+
<file>./src/NutgramServiceProvider.php</file>
27+
<file>./src/Console/RunCommand.php</file>
28+
<file>./src/Console/BaseMakeCommand.php</file>
29+
<file>./src/Mixins/MixinUtils.php</file>
30+
</exclude>
31+
</source>
32+
2933
</phpunit>

tests/Pest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
|
2828
*/
2929

30-
expect()->extend('getFileContent', fn () => $this->and(File::get($this->value)));
30+
expect()->extend('getFileContent', fn () => $this->and($this->value = File::get($this->value)));
3131

3232
/*
3333
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)