1--TEST-- 2phpunit BankAccountTest ../_files/BankAccountTest.php 3--FILE-- 4<?php 5$_SERVER['argv'][1] = '--no-configuration'; 6$_SERVER['argv'][2] = '--my-option=123'; 7$_SERVER['argv'][3] = '--my-other-option'; 8$_SERVER['argv'][4] = 'BankAccountTest'; 9$_SERVER['argv'][5] = __DIR__ . '/../_files/BankAccountTest.php'; 10 11require __DIR__ . '/../bootstrap.php'; 12require __DIR__ . '/../_files/MyCommand.php'; 13MyCommand::main(); 14?> 15--EXPECTF-- 16MyCommand::myHandler 123 17PHPUnit %s by Sebastian Bergmann and contributors. 18 19... 3 / 3 (100%) 20 21Time: %s, Memory: %s 22 23OK (3 tests, 3 assertions) 24