GuzzleHttp\Tests\CookieJar\CookieJarTest::testDoesNotAddIncompleteCookies PHP Метод

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

    public function testDoesNotAddIncompleteCookies()
    {
        $this->assertEquals(false, $this->jar->setCookie(new SetCookie()));
        $this->assertFalse($this->jar->setCookie(new SetCookie(array('Name' => 'foo'))));
        $this->assertFalse($this->jar->setCookie(new SetCookie(array('Name' => false))));
        $this->assertFalse($this->jar->setCookie(new SetCookie(array('Name' => true))));
        $this->assertFalse($this->jar->setCookie(new SetCookie(array('Name' => 'foo', 'Domain' => 'foo.com'))));
    }