doppel:Doppel是用于静态方法PHP模拟框架

时间:2021-03-22 11:35:50
【文件属性】:
文件名称:doppel:Doppel是用于静态方法PHP模拟框架
文件大小:44KB
文件格式:ZIP
更新时间:2021-03-22 11:35:50
PHP Bag2 \ Doppel Doppel是用于静态方法PHP模拟框架。 例子 <?php class Vehicle { public static function horn () { return 'Beep!' ; } } echo Vehicle :: horn (), PHP_EOL ; // Beep! $ doppel = ( new Bag2 \ Doppel \ Factory )-> create (); $ doppel -> add ( 'Vehicle::horn' )-> andReturn ( 'Boo!' ); echo Vehicle :: horn (), PHP_EOL ; // Boo! $ doppel -> finalize (); echo Vehicle :: horn (), PHP_EOL ; // Be
【文件预览】:
doppel-master
----.github()
--------workflows()
----phpstan-baseline.neon.dist(56B)
----src()
--------Replacer()
--------MethodCallDoppel.php(5KB)
--------Replacer.php(944B)
--------Alter()
--------Alter.php(578B)
--------Util()
--------UnexpectedMethodCallException.php(1KB)
--------Factory.php(1KB)
--------Receptor.php(666B)
--------Receptor()
--------Manager.php(3KB)
----phpunit.xml.dist(487B)
----psalm.xml(444B)
----.php_cs.dist(3KB)
----phpdoc.dist.xml(958B)
----phpstan.neon.dist(128B)
----LICENSE(16KB)
----tools()
--------phpstan(27B)
--------phan(21B)
--------psalm(23B)
--------phpdoc(19B)
--------.phpstan()
--------php-cs-fixer(37B)
--------php-syntax-check(1KB)
--------infection(31B)
--------.psalm()
--------.phan()
--------.php-cs-fixer()
--------.infection()
----.gitattribute(287B)
----README.md(1KB)
----Makefile(5KB)
----phpstan-baseline.neon(27B)
----.phan()
--------config.php(15KB)
----.editorconfig(579B)
----tests()
--------TestCase.php(309B)
--------Replacer()
--------Alter()
--------Util()
--------bootstrap.php(57B)
--------Receptor()
----.gitignore(167B)
----infection.json.dist(243B)
----composer.json(541B)

网友评论