/** * Ask for HTML text. * * @param integer $paragraphs Number of paragraphs. * @return \Magyarjeti\Loripsum\Client * @static */ public static function html($paragraphs = null) { return \Magyarjeti\Loripsum\Client::html($paragraphs); }
public function testMultipleUseOfSameParameter() { $uri = ''; $conn = m::mock('Magyarjeti\\Loripsum\\Http\\CurlAdapter'); $conn->shouldReceive('request')->once()->with(m::on(function ($url) use(&$uri) { $uri = $url; return true; })); $client = new Client($conn); $client->headers(); $client->headers(); $client->headers(); $client->html(); $this->assertEquals(1, substr_count($uri, 'headers')); }