Add Branches and tags support stubs

This commit is contained in:
Greyscale 2023-01-03 03:25:11 +01:00
parent 8a20f5ec50
commit 4ca48af775
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
3 changed files with 6 additions and 9 deletions

View file

@ -19,9 +19,9 @@ class Filter
}
/**
* @throws FilterDecodeException
*
* @return Filter
*
* @throws FilterDecodeException
*/
public function setOrderDirection(string $orderDirection): self
{

View file

@ -3,11 +3,10 @@
namespace Benzine\Exceptions;
use Slim\Interfaces\ErrorRendererInterface;
use Throwable;
class JsonErrorHandler implements ErrorRendererInterface
{
public function __invoke(Throwable $exception, bool $displayErrorDetails): string
public function __invoke(\Throwable $exception, bool $displayErrorDetails): string
{
return json_encode([
'error' => $exception->getMessage(),

View file

@ -4,7 +4,6 @@ namespace Benzine\Tests\Traits;
use Benzine\App as BenzineApp;
use DI\Container;
use InvalidArgumentException;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
@ -12,7 +11,6 @@ use Psr\Http\Message\UriInterface;
use Slim\App as SlimApp;
use Slim\Factory\ServerRequestCreatorFactory;
use Slim\Psr7\Factory\ServerRequestFactory;
use UnexpectedValueException;
/**
* Container Trait.
@ -28,7 +26,7 @@ trait AppTestTrait
*
* @before
*
* @throws UnexpectedValueException
* @throws \UnexpectedValueException
*/
protected function setupContainer(): void
{
@ -37,7 +35,7 @@ trait AppTestTrait
$container = $this->slimApp->getContainer();
if ($container === null) {
throw new UnexpectedValueException('Container must be initialized');
throw new \UnexpectedValueException('Container must be initialized');
}
$this->container = $container;
@ -58,7 +56,7 @@ trait AppTestTrait
protected function mock(string $class): MockObject
{
if (!class_exists($class)) {
throw new InvalidArgumentException(sprintf('Class not found: %s', $class));
throw new \InvalidArgumentException(sprintf('Class not found: %s', $class));
}
$mock = $this->getMockBuilder($class)