friends-of-behat/performance-extension

此包已被弃用且不再维护。未建议替代包。

利用仅适用于较新PHP版本的特性加速Behat。

v1.0.2 2017-07-10 20:23 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:00:05 UTC


README

仅适用于PHP 5.6!

你使用过的最简单的Behat扩展!

利用仅适用于较新PHP版本的特性加速Behat。在现实应用中最多可提升10%的速度。

使用方法

  1. 安装它

    $ composer require friends-of-behat/performance-extension --dev
  2. 在Behat配置中启用它

    # behat.yml
    default:
        # ...
        extensions:
            FriendsOfBehat\PerformanceExtension: ~
  3. Boom! 💥 现在Behat运行更快了!

里面有什么?

目前,它只是将 call_user_func_array($callable, $arguments) 替换为 $callable(...$arguments)