
| Current Path : /var/www/html/rocksensor2/web/core/tests/Drupal/TestTools/Extension/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor2/web/core/tests/Drupal/TestTools/Extension/RequiresComposerTrait.php |
<?php
declare(strict_types=1);
namespace Drupal\TestTools\Extension;
use Symfony\Component\Process\ExecutableFinder;
/**
* Ensures Composer executable is available, skips test otherwise.
*/
trait RequiresComposerTrait {
/**
* @beforeClass
*/
public static function requiresComposer(): void {
if (!((new ExecutableFinder())->find('composer'))) {
static::markTestSkipped('This test requires the Composer executable to be accessible.');
}
}
}