本文整理汇总了PHP中Prophecy\Prophecy\ObjectProphecy::getAfterMethods方法的典型用法代码示例。如果您正苦于以下问题:PHP ObjectProphecy::getAfterMethods方法的具体用法?PHP ObjectProphecy::getAfterMethods怎么用?PHP ObjectProphecy::getAfterMethods使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Prophecy\Prophecy\ObjectProphecy
的用法示例。
在下文中一共展示了ObjectProphecy::getAfterMethods方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: configureBenchmark
public static function configureBenchmark(ObjectProphecy $benchmark, array $options = array())
{
$options = array_merge(array('class' => 'Benchmark', 'beforeClassMethods' => array(), 'afterClassMethods' => array(), 'beforeMethods' => array(), 'afterMethods' => array(), 'path' => null), $options);
$benchmark->getClass()->willReturn($options['class']);
$benchmark->getBeforeClassMethods()->willReturn($options['beforeClassMethods']);
$benchmark->getAfterClassMethods()->willReturn($options['afterClassMethods']);
$benchmark->getBeforeMethods()->willReturn($options['beforeMethods']);
$benchmark->getAfterMethods()->willReturn($options['afterMethods']);
$benchmark->getPath()->willReturn($options['path']);
}
示例2: configureSubjectMetadata
public static function configureSubjectMetadata(ObjectProphecy $subject, array $options = [])
{
$options = array_merge(['iterations' => 1, 'name' => 'benchFoo', 'beforeMethods' => [], 'afterMethods' => [], 'parameterSets' => [[[]]], 'groups' => [], 'revs' => 1, 'warmup' => 0, 'notApplicable' => false, 'skip' => false, 'sleep' => 0, 'paramProviders' => [], 'outputTimeUnit' => 'microseconds', 'outputMode' => 'time'], $options);
$subject->getIterations()->willReturn($options['iterations']);
$subject->getSleep()->willReturn($options['sleep']);
$subject->getName()->willReturn($options['name']);
$subject->getBeforeMethods()->willReturn($options['beforeMethods']);
$subject->getAfterMethods()->willReturn($options['afterMethods']);
$subject->getParameterSets()->willReturn($options['parameterSets']);
$subject->getGroups()->willReturn($options['groups']);
$subject->getRevs()->willReturn($options['revs']);
$subject->getSkip()->willReturn($options['skip']);
$subject->getWarmup()->willReturn($options['warmup']);
$subject->getParamProviders()->willReturn($options['paramProviders']);
$subject->getOutputTimeUnit()->willReturn($options['outputTimeUnit']);
$subject->getOutputMode()->willReturn($options['outputMode']);
}