composer – PHPUNIT is running successfully on local but giving error on acquia-pipleine

acquia-pipeline.yml file:

version: 1.3.0
services:

  • mysql
  • php:
    version: 7.3
  • composer:
    version: 2

variables:
global:
COMPOSER_BIN: $SOURCE_DIR/vendor/bin
BLT_DIR: $SOURCE_DIR/vendor/acquia/blt

events:
build:
steps:
– setup:
type: script
script:
– rm -rf ./vendor
– composer install –ansi
– validate:
type: script
script:
– ./vendor/bin/blt validate

    - test:
        type: script
        script:
          - ./vendor/bin/phpunit docroot/modules/custom
          

When I am running vendor/bin/phpunit on local I am not getting any error.
Testing
. 1 / 1 (100%)

Time: 00:00.014, Memory: 14.00 MB

OK (1 test, 1 assertion)

I have defined a test for a custom module.
But when I am running this on acquia-pipeline 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 “DrupalComponentEventDispatcherEvent” class extends “SymfonyComponentEventDispatcherEvent” that is deprecated since Symfony 4.3, use “SymfonyContractsEventDispatcherEvent” instead.

1x in DeprecationErrorHandler::shutdown from SymfonyBridgePhpUnit

1x: The “PHPUnitTextUIDefaultResultPrinter” 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 “DrupalTestsListenersHtmlOutputPrinter”.
1x in DeprecationErrorHandler::shutdown from SymfonyBridgePhpUnit

1x: The “DrupalTestsListenersDrupalListener” class implements “PHPUnitFrameworkTestListener” that is deprecated Use the TestHook interfaces instead.
1x in DeprecationErrorHandler::shutdown from SymfonyBridgePhpUnit

1x: The “DrupalTestsListenersDrupalListener” class uses “PHPUnitFrameworkTestListenerDefaultImplementation” that is deprecated The TestListener interface is deprecated.
1x in DeprecationErrorHandler::shutdown from SymfonyBridgePhpUnit