Blackfire\Player\Scenario::endpoint PHP Méthode

endpoint() public méthode

public endpoint ( $endpoint )
    public function endpoint($endpoint)
    {
        $this->root->getOptions()->endpoint($endpoint);
        return $this;
    }

Usage Example

 private function extract()
 {
     $player = new Player(new Client());
     $scenario = new Scenario();
     $scenario->endpoint('http://londonbusroutes.net')->visit("url('/changes.htm')")->expect('status_code() == 200')->extract('table_count', 'css("table").count()');
     $r = $player->run($scenario);
     return $r['table_count'];
 }
All Usage Examples Of Blackfire\Player\Scenario::endpoint