mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 08:47:22 +01:00
fix: --dirty when no tests found
This commit is contained in:
26
src/Exceptions/NoTestsFound.php
Normal file
26
src/Exceptions/NoTestsFound.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\Exceptions;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use NunoMaduro\Collision\Contracts\RenderlessEditor;
|
||||
use NunoMaduro\Collision\Contracts\RenderlessTrace;
|
||||
use Symfony\Component\Console\Exception\ExceptionInterface;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class NoTestsFound extends InvalidArgumentException implements ExceptionInterface, RenderlessEditor, RenderlessTrace
|
||||
{
|
||||
/**
|
||||
* Creates a new Exception instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('No tests found.');
|
||||
|
||||
// ...
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user