Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/Echo/tests/phpunit/Mapper/EchoExecuteFirstArgumentStub.php
Ðазад
<?php namespace MediaWiki\Extension\Notifications\Test\Integration\Mapper; use PHPUnit\Framework\MockObject\Invocation; use PHPUnit\Framework\MockObject\Invocation\StaticInvocation; use PHPUnit\Framework\MockObject\Stub\Stub; class EchoExecuteFirstArgumentStub implements Stub { public function invoke( Invocation $invocation ) { if ( !$invocation instanceof StaticInvocation ) { throw new \PHPUnit\Framework\Exception( 'wrong invocation type' ); } if ( !$invocation->arguments ) { throw new \PHPUnit\Framework\Exception( 'Method call must have an argument' ); } return call_user_func( reset( $invocation->arguments ) ); } public function toString(): string { return 'return result of call_user_func on first invocation argument'; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка