5 Commits

Author SHA1 Message Date
c906fef5c8 FIX: last ignore 2021-02-09 17:39:57 -03:00
6fe036f3cd Add results to ignore 2021-02-09 17:38:08 -03:00
f32e775191 PHPUnit config 2021-02-09 17:38:08 -03:00
35faeff1c9 Update tests 2021-02-09 17:38:08 -03:00
e1cfbbc7ae Initial tests 2021-02-09 17:38:08 -03:00
4 changed files with 32 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
# Composer # Composer
/vendor/ /vendor/
composer.lock composer.lock
# PHPUnit
.phpunit.result.*

10
phpunit.xml Normal file
View File

@ -0,0 +1,10 @@
<phpunit
colors="true"
verbose="true"
>
<testsuites>
<testsuite name="Config Tests">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>

9
tests/ContractTest.php Normal file
View File

@ -0,0 +1,9 @@
<?php
use PHPUnit\Framework\TestCase;
use App\contract\Auth;
class ContractTest extends TestCase {
public function testContract() {
Auth::logout();
}
}

10
tests/ServiceTest.php Normal file
View File

@ -0,0 +1,10 @@
<?php
use PHPUnit\Framework\TestCase;
use App\Service\Auth;
class ServiceTest extends TestCase {
public function testLoad() {
$this->service = new Auth();
$this->assertTrue($this->service != false);
}
}