You've already forked php-auth
generated from siteworxpro/Php-Template
55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Siteworxpro\Tests\Controllers;
|
|
|
|
use Siteworxpro\App\Controllers\Controller;
|
|
|
|
class ControllerTest extends AbstractController
|
|
{
|
|
public function testNotFoundExceptions()
|
|
{
|
|
$testClass = new TestClass();
|
|
|
|
$this->expectException(\League\Route\Http\Exception\NotFoundException::class);
|
|
$testClass->get($this->getMockRequest());
|
|
}
|
|
|
|
public function testNotFoundExceptionPost()
|
|
{
|
|
$testClass = new TestClass();
|
|
|
|
$this->expectException(\League\Route\Http\Exception\NotFoundException::class);
|
|
$testClass->post($this->getMockRequest());
|
|
}
|
|
|
|
public function testNotFoundExceptionPut()
|
|
{
|
|
$testClass = new TestClass();
|
|
|
|
$this->expectException(\League\Route\Http\Exception\NotFoundException::class);
|
|
$testClass->put($this->getMockRequest());
|
|
}
|
|
|
|
public function testNotFoundExceptionDelete()
|
|
{
|
|
$testClass = new TestClass();
|
|
|
|
$this->expectException(\League\Route\Http\Exception\NotFoundException::class);
|
|
$testClass->delete($this->getMockRequest());
|
|
}
|
|
|
|
public function testNotFoundExceptionPatch()
|
|
{
|
|
$testClass = new TestClass();
|
|
|
|
$this->expectException(\League\Route\Http\Exception\NotFoundException::class);
|
|
$testClass->patch($this->getMockRequest());
|
|
}
|
|
}
|
|
|
|
class TestClass extends Controller // phpcs:ignore
|
|
{
|
|
}
|