/** * @param string $string * @param string $prefix * @param string $wantedResult * * @dataProvider removePrefixDataProvider */ public function testRemovePrefix($string, $prefix, $wantedResult) { $result = $this->stringUtility->removePrefix($string, $prefix); $this->assertEquals($wantedResult, $result); }
/** * @param string $headerName * * @return string */ private function removeHTTPPrefix($headerName) { $headerWithoutPrefix = $this->stringUtility->removePrefix($headerName, self::HTTP_HEADER_PREFIX); return $headerWithoutPrefix; }