Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
c906fef5c8 | |||
6fe036f3cd | |||
f32e775191 | |||
35faeff1c9 | |||
e1cfbbc7ae |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
# Composer
|
||||
/vendor/
|
||||
composer.lock
|
||||
|
||||
# PHPUnit
|
||||
.phpunit.result.*
|
||||
|
10
phpunit.xml
Normal file
10
phpunit.xml
Normal 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
9
tests/ContractTest.php
Normal 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
10
tests/ServiceTest.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user