Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/tests/Parser/
Upload File :
Current File : //opt/nginxhttpd_/tests/Parser/CpanelUserdataParserTest.php

<?php


namespace App\Tests\Parser;

use App\Parser\CpanelUserdataParser;
use App\Tests\CustomTestCase;

class CpanelUserdataParserTest extends CustomTestCase
{
    public function testParseUserData(){
        self::bootKernel();
        $container = static::getContainer();
        /** @var CpanelUserdataParser $cPanelUserdataParser */
        $cPanelUserdataParser = $container->get(CpanelUserdataParser::class);
        $this->assertTrue($cPanelUserdataParser->parse());
        $result = $cPanelUserdataParser->getData();
        $this->assertIsArray($result);
        $this->assertSame(['_data' => [
            "tata1.otest.odns.fr" => "tata1.com",
            "tata2.otest.odns.fr" => "tata2.com",
            "tata3.otest.odns.fr" => "tata3.com",
            "tata4.otest.odns.fr" => "tata4.com",
            "tata5.otest.odns.fr" => "tata5.com",
            "tata6.otest.odns.fr" => "tata6.com",
            "test1.otest.odns.fr" => "test1.com",
            "test2.otest.odns.fr" => "test2.com",
            "test3.otest.odns.fr" => "test3.com",
            "test4.otest.odns.fr" => "test4.com",
            "test5.otest.odns.fr" => "test5.com",
            "test6.otest.odns.fr" => "test6.com",
            "test7.otest.odns.fr" => "test7.com",
            "test8.otest.odns.fr" => "test8.com",
            "test9.otest.odns.fr" => "test9.com",
            "domaine-supplementaire.testopenresty.fr" => "domaine-supplementaire.com",
            "dsqdsqddqs.testopenresty.fr" => "dsqdsqddqs.dsq",
            "dsqdsqddsqdqs.testopenresty.fr" => "dsqdsqddsqdqs.dsq",
            "dsqdsqdqs.testopenresty.fr" => "dsqdsqdqs.dsq",
            "qdqdddsqdqs.testopenresty.fr" => "qdqdddsqdqs.dsq",
            "sqdqdddsqdqs.testopenresty.fr" => "sqdqdddsqdqs.dsq",
            "domaine-alias.com" => "testopenresty.fr",
            "testalidds.com" => "testopenresty.fr",
            "testaliddds.com" => "testopenresty.fr",
            "testalidddds.com" => "testopenresty.fr",
            "testaliddddds.com" => "testopenresty.fr",
            "noisette.noisette.o2switch" => "noisette.saucisson.eu",
        ]], $result);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists