Skip to content

Commit

Permalink
Clean phpunit.xml.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mchev committed May 24, 2024
1 parent 91a10cb commit 7a35781
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
35 changes: 17 additions & 18 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Test">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="MAIL_DRIVER" value="array"/>
</php>
<source>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
<directory>src</directory>
</include>
</source>
</source>
<php>
<env name="APP_ENV" value="testing" />
<env name="DB_CONNECTION" value="sqlite" />
<env name="DB_DATABASE" value=":memory:" />
</php>
</phpunit>
2 changes: 0 additions & 2 deletions tests/Unit/BlockByCountryMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ class BlockByCountryMiddlewareTest extends TestCase
{
use RefreshDatabase;

/** @var BlockByCountry */
private $middleware;

/** @var IpApiService|\Mockery\MockInterface */
private $ipApiService;

protected function setUp(): void
Expand Down

0 comments on commit 7a35781

Please sign in to comment.