1. Go to this page and download the library: Download wdalmut/frankie 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/ */
namespace spec;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Zend\EventManager\EventManager;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class MyControllerSpec extends ObjectBehavior
{
function let(EventManager $em)
{
$this->setEventManager($em);
}
function it_is_initializable()
{
$this->shouldHaveType('MyController');
}
function it_should_trigger_the_mark_event(
Request $request, Response $response, EventManager $em
)
{
$em->trigger("mark-it", Argument::Any())->shouldBeCalledTimes(1);
$this->get($request, $response);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.