summaryrefslogtreecommitdiff
path: root/tests/units/Core/ToolTest.php
blob: e714f50683c40a7adf0a4c52e8847385f473c2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

require_once __DIR__.'/../Base.php';

use Core\Tool;

class ToolTest extends Base
{
    public function testMailboxHash()
    {
        $this->assertEquals('test1', Tool::getMailboxHash('a+test1@localhost'));
        $this->assertEquals('', Tool::getMailboxHash('test1@localhost'));
        $this->assertEquals('', Tool::getMailboxHash('test1'));
    }
}