summaryrefslogtreecommitdiff
path: root/tests/units/ToolTest.php
blob: 4a62fe3bbd3d4d3fe831753a8221a942d6ce940c (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'));
    }
}