mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Add more tests
This commit is contained in:
parent
0f55220412
commit
990309f2d3
16 changed files with 716 additions and 5 deletions
18
tests/MailSo/Mime/EmailCollectionTest.php
Normal file
18
tests/MailSo/Mime/EmailCollectionTest.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?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());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue