private function setHeaderLink(array $linkEntries)
    {
        $values = [];
        foreach ($linkEntries as $linkEntry) {
            \PHPUnit\Framework\Assert::assertArrayHasKey(
                'uri',
                $linkEntry,
                'linkEntry should contain property "uri"'
            );
            \PHPUnit\Framework\Assert::assertArrayHasKey(
                'link-param',
                $linkEntry,
                'linkEntry should contain property "link-param"'
            );
            $values[] = $linkEntry['uri'] . '; ' . $linkEntry['link-param'];
        }

        $this->haveHttpHeader('Link', implode(', ', $values));
    }
private function setHeaderLink(array $linkEntries)
    {
        $values = [];
        foreach ($linkEntries as $linkEntry) {
            \PHPUnit\Framework\Assert::assertArrayHasKey(
                'uri',
                $linkEntry,
                'linkEntry should contain property "uri"'
            );
            \PHPUnit\Framework\Assert::assertArrayHasKey(
                'link-param',
                $linkEntry,
                'linkEntry should contain property "link-param"'
            );
            $values[] = $linkEntry['uri'] . '; ' . $linkEntry['link-param'];
        }

        $this->haveHttpHeader('Link', implode(', ', $values));
    }
private function setHeaderLink ( array $ linkEntries ) { $ values = [ ] ; foreach ( $ linkEntries as $ linkEntry ) { \ PHPUnit \ Framework \ Assert :: assertArrayHasKey ( 'uri' , $ linkEntry , 'linkEntry should contain property "uri"' ) ; \ PHPUnit \ Framework \ Assert :: assertArrayHasKey ( 'link-param' , $ linkEntry , 'linkEntry should contain property "link-param"' ) ; $ values [ ] = $ linkEntry [ 'uri' ] . '; ' . $ linkEntry [ 'link-param' ] ; } $ this -> haveHttpHeader ( 'Link' , implode ( ', ' , $ values ) ) ; }
Sets Headers "Link" as one header "Link" based on linkEntries

@param array $linkEntries (entry is array with keys "uri" and "link-param")

@link http://tools.ietf.org/html/rfc2068#section-19.6.2.4

@author samva.ua@gmail.com
Sets Headers Link as one header Link based on linkEntries