D0R4H4X0R SH3LL

Server Information

Server: Microsoft-IIS/10.0
System: Windows NT BH-PLESK-WEB3 10.0 build 20348 (Windows Server 2022) AMD64
User: IWPD_8556(lensai) ( 0 )
PHP Version: 8.3.21
Python Version: Python is not available
Disabled Functions:, Cron, Curl, Ftp, GCC, Mail, Mysql, PKEXEC, Perl, Python, SendMail, Ssh, Wget, exec, passthru, shell_exec, system

Features

Command Line

Find Longest Directory Path

Scan New PHP Files

Upload File

Directory: D:/INETPUB/VHOSTS/lensai.com/httpdocs/admin/mail/test/

Current File : D:/INETPUB/VHOSTS/lensai.com/httpdocs/admin/mail/test/phpmailerLangTest.php

<?php
/**
 * PHPMailer - language file tests
 * Requires PHPUnit 3.3 or later.
 *
 * PHP version 5.0.0
 *
 * @package PHPMailer
 * @author Andy Prevost
 * @author Marcus Bointon <phpmailer@synchromedia.co.uk>
 * @copyright 2004 - 2009 Andy Prevost
 * @copyright 2010 Marcus Bointon
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */

require_once '../PHPMailerAutoload.php';

/**
 * PHPMailer - PHP email transport unit test class
 * Performs authentication tests
 */
class PHPMailerLangTest extends PHPUnit_Framework_TestCase
{
    /**
     * Holds a phpmailer instance.
     * @private
     * @var PHPMailer
     */
    public $Mail;

    /**
     * @var string Default include path
     */
    public $INCLUDE_DIR = '../';

    /**
     * Run before each test is started.
     */
    public function setUp()
    {
        $this->Mail = new PHPMailer;
    }

    /**
     * Test language files for missing and excess translations
     * All languages are compared with English
     * @group languages
     */
    public function testTranslations()
    {
        $this->Mail->setLanguage('en');
        $definedStrings = $this->Mail->getTranslations();
        $err = '';
        foreach (new DirectoryIterator('../language') as $fileInfo) {
            if ($fileInfo->isDot()) {
                continue;
            }
            $matches = array();
            //Only look at language files, ignore anything else in there
            if (preg_match('/^phpmailer\.lang-([a-z_]{2,})\.php$/', $fileInfo->getFilename(), $matches)) {
                $lang = $matches[1]; //Extract language code
                $PHPMAILER_LANG = array(); //Language strings get put in here
                include $fileInfo->getPathname(); //Get language strings
                $missing = array_diff(array_keys($definedStrings), array_keys($PHPMAILER_LANG));
                $extra = array_diff(array_keys($PHPMAILER_LANG), array_keys($definedStrings));
                if (!empty($missing)) {
                    $err .= "\nMissing translations in $lang: " . implode(', ', $missing);
                }
                if (!empty($extra)) {
                    $err .= "\nExtra translations in $lang: " . implode(', ', $extra);
                }
            }
        }
        $this->assertEmpty($err, $err);
    }
}
bootstrap.php 0.137 KB
File -rw-rw-rw-
fakepopserver.sh 2.929 KB
File -rw-rw-rw-
fakesendmail.sh 0.463 KB
File -rw-rw-rw-
login.php 0.582 KB
File -rw-rw-rw-
File -rw-rw-rw-
phpmailerTest.php 51.585 KB
File -rw-rw-rw-
File -rw-rw-rw-
test.html 0.006 KB
File -rw-rw-rw-
File -rw-rw-rw-
File -rw-rw-rw-
D0R4H4X0R SH3LL