public function testCreateMailboxWillCreate() { $mb = $this->address2->createMailbox($n = "Bent", $p = "BentsPass"); $this->assertInstanceOf('ChristianBudde\\PartMail\\model\\MailboxImpl', $mb); $this->assertEquals($n, $mb->getName()); $this->assertTrue($mb->checkPassword($p)); $this->assertTrue($mb->exists()); $this->assertTrue($mb === $this->address2->createMailbox("BOB", "HackerBob")); }