Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Add test to cover fix from #36
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbundyra committed Oct 16, 2019
1 parent 224a58a commit a4b0038
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/DecodeTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* @see https://github.com/zendframework/zend-mime for the canonical source repository
* @copyright Copyright (c) 2019 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/zend-mime/blob/master/LICENSE.md New BSD License
*/

namespace ZendTest\Mime;

use PHPUnit\Framework\TestCase;
use Zend\Mail\Headers;
use Zend\Mime\Decode;

class DecodeTest extends TestCase
{
public function testDecodeMessageWithoutHeaders()
{
$text = 'This is a message body';

Decode::splitMessage($text, $headers, $body);

self::assertInstanceOf(Headers::class, $headers);
self::assertSame($text, $body);
}
}

0 comments on commit a4b0038

Please sign in to comment.