PhlyTest\Http\MessageTraitTest::testWithAddedHeaderRaisesExceptionForNonStringNonArrayValue PHP Метод

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

    public function testWithAddedHeaderRaisesExceptionForNonStringNonArrayValue($value)
    {
        $this->setExpectedException('InvalidArgumentException', 'must be a string');
        $message = $this->message->withAddedHeader('X-Foo', $value);
    }