Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
symfony
/
panther
/
src
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/symfony/panther/src/ServerExtension.php
<?php /* * This file is part of the Panther project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Symfony\Component\Panther; use PHPUnit\Runner\AfterLastTestHook; use PHPUnit\Runner\AfterTestErrorHook; use PHPUnit\Runner\AfterTestFailureHook; use PHPUnit\Runner\BeforeFirstTestHook; /** * @author Dany Maillard <danymaillard93b@gmail.com> */ final class ServerExtension implements BeforeFirstTestHook, AfterLastTestHook, AfterTestErrorHook, AfterTestFailureHook { use ServerTrait; public function executeBeforeFirstTest(): void { $this->keepServerOnTeardown(); } public function executeAfterLastTest(): void { $this->stopWebServer(); } public function executeAfterTestError(string $test, string $message, float $time): void { $this->pause(sprintf('Error: %s', $message)); } public function executeAfterTestFailure(string $test, string $message, float $time): void { $this->pause(sprintf('Failure: %s', $message)); } }