PHP code example of crellbar / prophecy-extensions

1. Go to this page and download the library: Download crellbar/prophecy-extensions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

crellbar / prophecy-extensions example snippets


use Crellbar\ProphecyExtensions\FluidPromise as Fluid;

/** @var ObjectProphecy $prophecy */
... // setup prophecy in the usual fashion for the test tool you're using

$prophecy->myMethod(Argument::any())->will(new Fluid());

use Crellbar\ProphecyExtensions\VoidPromise as VoidP;

/** @var ObjectProphecy $prophecy */
... // setup prophecy in the usual fashion for the test tool you're using

$prophecy->myMethod(Argument::any())->will(new VoidP());