Update plugin interfaces and instantiate container

This commit is contained in:
johannes.pichler
2020-06-05 07:48:51 +02:00
parent b20f208b55
commit 337e751200
6 changed files with 31 additions and 17 deletions

View File

@ -4,9 +4,6 @@ declare(strict_types=1);
namespace Pest\Contracts\Plugins;
use Pest\TestSuite;
use Symfony\Component\Console\Output\OutputInterface;
/**
* @internal
*/
@ -15,5 +12,5 @@ interface AddsOutput
/**
* Allows to add custom output after the test suite was executed.
*/
public function addOutput(TestSuite $testSuite, OutputInterface $output, int $testReturnCode): int;
public function addOutput(int $testReturnCode): int;
}

View File

@ -4,8 +4,6 @@ declare(strict_types=1);
namespace Pest\Contracts\Plugins;
use Pest\TestSuite;
/**
* @internal
*/
@ -21,5 +19,5 @@ interface HandlesArguments
*
* @return array<int, string> the updated list of arguments
*/
public function handleArguments(TestSuite $testSuite, array $arguments): array;
public function handleArguments(array $arguments): array;
}