GuzzleHttp\Tests\CookieJar\SetCookieTest::testConvertsToString PHP Метод

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

    public function testConvertsToString()
    {
        $t = 1382916008;
        $cookie = new SetCookie(['Name' => 'test', 'Value' => '123', 'Domain' => 'foo.com', 'Expires' => $t, 'Path' => '/abc', 'HttpOnly' => true, 'Secure' => true]);
        $this->assertEquals('test=123; Domain=foo.com; Path=/abc; Expires=Sun, 27 Oct 2013 23:20:08 GMT; Secure; HttpOnly', (string) $cookie);
    }