Namshi\Cuzzle\Formatter\CurlFormatter::setCommandLineLength PHP Метод

setCommandLineLength() публичный Метод

public setCommandLineLength ( integer $commandLineLength )
$commandLineLength integer
    public function setCommandLineLength($commandLineLength)
    {
        $this->commandLineLength = $commandLineLength;
    }

Usage Example

Пример #1
0
 public function testMultiLineDisabled()
 {
     $this->curlFormatter->setCommandLineLength(10);
     $request = new Request('GET', 'example.local', ['foo' => 'bar']);
     $curl = $this->curlFormatter->format($request);
     $this->assertEquals(substr_count($curl, "\n"), 2);
 }