When I am running the .vendor/bin/phpunit it is not giving any error. o/p:
Testing . 1 / 1 (100%)
Time: 00:00.014, Memory: 14.00 MB
OK (1 test, 1 assertion)
When I am running the same on acquia-pipeline's build it is giving the below error.
Executing step test.
- ./vendor/bin/phpunit docroot/modules/custom
PHPUnit 9.5.9 by Sebastian Bergmann and contributors.
No tests executed!
Remaining direct deprecation notices (4)
1x: The "Drupal\Component\EventDispatcher\Event" class extends "Symfony\Component\EventDispatcher\Event" that is deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead.
1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit
1x: The "PHPUnit\TextUI\DefaultResultPrinter" class is considered internal This class is not covered by the backward compatibility promise for PHPUnit. It may change without further notice. You should not use it from "Drupal\Tests\Listeners\HtmlOutputPrinter". 1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit
1x: The "Drupal\Tests\Listeners\DrupalListener" class implements "PHPUnit\Framework\TestListener" that is deprecated Use the TestHook
interfaces instead.
1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit
1x: The "Drupal\Tests\Listeners\DrupalListener" class uses "PHPUnit\Framework\TestListenerDefaultImplementation" that is deprecated The TestListener
interface is deprecated.
1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit
Can you help me to figure out the problem?