File manager - Edit - /usr/local/prospamfilter/vendor/codeception/codeception/tests/unit/Codeception/ApplicationTest.php
Back
<?php namespace Codception; use Codeception\Application; class ApplicationTest extends \PHPUnit_Framework_TestCase { public static function setUpBeforeClass() { require_once \Codeception\Configuration::dataDir() . 'register_command/examples/MyCustomCommand.php'; } public function testRegisterCustomCommand() { \Codeception\Configuration::append(array('extensions' => array( 'commands' => array( 'Project\Command\MyCustomCommand')))); $application = new Application(); $application->registerCustomCommands(); try { $application->find('myProject:myCommand'); } catch (\Exception $e) { $this->fail($e->getMessage()); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings