public function testAddAttachmentWithoutExtension() { $email = new Email(); //ensure that addAttachment appends to the list of attachments $email->addAttachment("../file_4"); $attachments[] = "../file_4"; $msg_attachments = $email->getAttachments(); $this->assertEquals($attachments[count($attachments) - 1], $msg_attachments[count($msg_attachments) - 1]['file']); }