public function startScenario(Build\Build $build = null, $options = array())
    {
        if (null === $build) {
            $build = $this->startBuild();
        }

        $content = json_encode($options);
        $data = json_decode($this->sendHttpRequest($this->config->getEndpoint().'/api/v2/scenarios/builds/'.$build->getUuid(), 'POST', array('content' => $content), array('Content-Type: application/json')), true);

        $build->incScenario();

        return new Scenario($build, $data);
    }
public function startScenario(Build\Build $build = null, $options = array())
    {
        if (null === $build) {
            $build = $this->startBuild();
        }

        $content = json_encode($options);
        $data = json_decode($this->sendHttpRequest($this->config->getEndpoint().'/api/v2/scenarios/builds/'.$build->getUuid(), 'POST', array('content' => $content), array('Content-Type: application/json')), true);

        $build->incScenario();

        return new Scenario($build, $data);
    }
public function startScenario ( Build \ Build $ build = null , $ options = array ( ) ) { if ( null === $ build ) { $ build = $ this -> startBuild ( ) ; } $ content = json_encode ( $ options ) ; $ data = json_decode ( $ this -> sendHttpRequest ( $ this -> config -> getEndpoint ( ) . '/api/v2/scenarios/builds/' . $ build -> getUuid ( ) , 'POST' , array ( 'content' => $ content ) , array ( 'Content-Type: application/json' ) ) , true ) ; $ build -> incScenario ( ) ; return new Scenario ( $ build , $ data ) ; }
Creates a Blackfire Scenario.
Creates a Blackfire Scenario .