doppel:Doppel是用于静态方法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.zip
(预估有个58文件)
doppel-master
.github
workflows
CI.yml
901B
phpstan-baseline.neon.dist
56B
src
Replacer
Uopz.php
1KB
Runkit7.php
2KB
ReplacerFactory.php
1KB
暂无评论