Added phing for running tests & fixed issues in order to pass the tests
This commit is contained in:
@ -179,11 +179,11 @@ class MultiPart extends PartHeader
|
||||
*/
|
||||
public function generateBoundary()
|
||||
{
|
||||
return 'multipart-boundary-' . Helper::generateUUID() . '@response.info';
|
||||
return 'multipart-boundary-' . Helper::generateUuid() . '@response.info';
|
||||
}
|
||||
|
||||
public function getMainPartContentId()
|
||||
{
|
||||
return $this->mainPartContentId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ class ParsedPartsGetter
|
||||
$hitFirstBoundary = true;
|
||||
$inHeader = true;
|
||||
$messagePartStringContent = '';
|
||||
} else if (MimeBoundaryAnalyser::isMessageLineLastBoundary($mimeMessageLine, $contentTypeBoundary)) {
|
||||
} elseif (MimeBoundaryAnalyser::isMessageLineLastBoundary($mimeMessageLine, $contentTypeBoundary)) {
|
||||
$currentPartContent = self::decodeContent(
|
||||
$currentPart,
|
||||
substr($messagePartStringContent, 0, -1)
|
||||
@ -166,7 +166,7 @@ class ParsedPartsGetter
|
||||
|
||||
if ($encoding === Part::ENCODING_BASE64) {
|
||||
$partStringContent = base64_decode($partStringContent);
|
||||
} else if ($encoding === Part::ENCODING_QUOTED_PRINTABLE) {
|
||||
} elseif ($encoding === Part::ENCODING_QUOTED_PRINTABLE) {
|
||||
$partStringContent = quoted_printable_decode($partStringContent);
|
||||
}
|
||||
|
||||
|
@ -154,6 +154,6 @@ class Part extends PartHeader
|
||||
*/
|
||||
protected function generateContentId()
|
||||
{
|
||||
return 'part-' . Helper::generateUUID() . '@response.info';
|
||||
return 'part-' . Helper::generateUuid() . '@response.info';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user