/** * helper method to assert presence and content of binford headers * * @param stubbles\peer\HeaderList $headerList */ protected function assertBinford(HeaderList $headerList) { assertTrue($headerList->containsKey('Binford')); assertTrue($headerList->containsKey('X-Power')); assert($headerList, isOfSize(2)); assert($headerList->get('Binford'), equals('6100')); assert($headerList->get('X-Power'), equals('More power!')); }