Beispiel #1
0
    public function testDefaultFrom() {
        Mail\Mail::setDefaultFrom('*****@*****.**','John Doe');
        $this->assertEquals(array('email' => '*****@*****.**','name' =>'John Doe'), Mail\Mail::getDefaultFrom());

        Mail\Mail::clearDefaultFrom();
        $this->assertEquals(null, Mail\Mail::getDefaultFrom());

        Mail\Mail::setDefaultFrom('*****@*****.**');
        $this->assertEquals(array('email' => '*****@*****.**','name' => null), Mail\Mail::getDefaultFrom());
    }