Skip to content

Commit

Permalink
Ah! x6
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Mar 10, 2024
1 parent 562bcda commit 9bc0c01
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
52 changes: 28 additions & 24 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./tests</directory>
<directory suffix=".php">./src/Facades</directory>
<directory suffix=".php">./src/Log</directory>
<file>./src/NutgramServiceProvider.php</file>
<file>./src/Console/RunCommand.php</file>
<file>./src/Console/BaseMakeCommand.php</file>
<file>./src/Mixins/MixinUtils.php</file>
</exclude>
</coverage>
<php>
<env name="TELEGRAM_TOKEN" value="TELEGRAM_TOKEN_HERE" force="true"/>
</php>
cacheDirectory=".phpunit.cache">

<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>

<php>
<env name="TELEGRAM_TOKEN" value="TELEGRAM_TOKEN_HERE" force="true"/>
</php>

<source>
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./tests</directory>
<directory suffix=".php">./src/Facades</directory>
<directory suffix=".php">./src/Log</directory>
<file>./src/NutgramServiceProvider.php</file>
<file>./src/Console/RunCommand.php</file>
<file>./src/Console/BaseMakeCommand.php</file>
<file>./src/Mixins/MixinUtils.php</file>
</exclude>
</source>

</phpunit>
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
|
*/

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

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 9bc0c01

Please sign in to comment.