mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 14:58:19 +08:00
5236810d6b
Small fixes
18 lines
506 B
PHP
18 lines
506 B
PHP
<?php
|
|
|
|
namespace MailSoTests;
|
|
|
|
class EmailCollectionTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testNewInstance()
|
|
{
|
|
$oMails = \MailSo\Mime\EmailCollection::NewInstance('admin@example.com');
|
|
$this->assertEquals(1, $oMails->Count());
|
|
}
|
|
|
|
public function testNewInstance1()
|
|
{
|
|
$oMails = \MailSo\Mime\EmailCollection::NewInstance('User Name <username@domain.com>, User D\'Name <username@domain.com>, "User Name" <username@domain.com>');
|
|
$this->assertEquals(3, $oMails->Count());
|
|
}
|
|
}
|