CodeceptionUtilStub
Codeception\Util\Stub
$magicMethods
public static $magicMethods
atLeastOnce()
public static atLeastOnce($params = null)
Checks if a method has been invoked at least one time.
If the number of invocations is 0 it will throw an exception in verify.
<?php $user = Stub::make( 'User', array( 'getName' => Stub::atLeastOnce(function() { return 'Davert';}), 'someMethod' => function() {} ) ); $user->getName(); $user->getName(); ?>
-
param mixed
$params -
return
StubMarshaler