Skip to content

Commit

Permalink
chore: fix phpunit warning
Browse files Browse the repository at this point in the history
  • Loading branch information
koenhoeijmakers committed Feb 27, 2023
1 parent e996a03 commit 981ad08
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
31 changes: 17 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" cacheResult="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Translatable">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<php>
<server name="DB_CONNECTION" value="testing"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php"
cacheResult="false" colors="true" processIsolation="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Translatable">
<directory suffix=".php">./tests/Unit/</directory>
</testsuite>
</testsuites>
<php>
<server name="DB_CONNECTION" value="testing"/>
</php>
</phpunit>
4 changes: 3 additions & 1 deletion tests/FilteringTest.php → tests/Unit/FilteringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

declare(strict_types=1);

namespace KoenHoeijmakers\LaravelFilterable\Tests;
namespace KoenHoeijmakers\LaravelFilterable\Tests\Unit;

use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Builder;
use KoenHoeijmakers\LaravelFilterable\Filtering;
use Illuminate\Database\Eloquent\Relations\HasMany;
use KoenHoeijmakers\LaravelFilterable\Tests\TestCase;
use KoenHoeijmakers\LaravelFilterable\Tests\TestModel;
use KoenHoeijmakers\LaravelFilterable\Contracts\Filtering as FilteringContract;

class FilteringTest extends TestCase
Expand Down

0 comments on commit 981ad08

Please sign in to comment.