403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.58
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/wpide/PHP-Parser/test/PHPParser/Tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/wpide/PHP-Parser/test/PHPParser/Tests/TemplateLoaderTest.php
<?php

class PHPParser_Tests_TemplateLoaderTest extends PHPUnit_Framework_TestCase
{
    public function testLoadWithoutSuffix() {
        $templateLoader = new PHPParser_TemplateLoader(
            new PHPParser_Parser(new PHPParser_Lexer),
            dirname(__FILE__)
        );

        // load this file as a template, as we don't really care about the contents
        $template = $templateLoader->load('TemplateLoaderTest.php');
        $this->assertInstanceOf('PHPParser_Template', $template);
    }

    public function testLoadWithSuffix() {
        $templateLoader = new PHPParser_TemplateLoader(
            new PHPParser_Parser(new PHPParser_Lexer),
            dirname(__FILE__), '.php'
        );

        // load this file as a template, as we don't really care about the contents
        $template = $templateLoader->load('TemplateLoaderTest');
        $this->assertInstanceOf('PHPParser_Template', $template);
    }

    /**
     * @expectedException InvalidArgumentException
     */
    public function testNonexistentBaseDirectoryError() {
        new PHPParser_TemplateLoader(
            new PHPParser_Parser(new PHPParser_Lexer),
            dirname(__FILE__) . '/someDirectoryThatDoesNotExist'
        );
    }

    /**
     * @expectedException InvalidArgumentException
     */
    public function testNonexistentFileError() {
        $templateLoader = new PHPParser_TemplateLoader(
            new PHPParser_Parser(new PHPParser_Lexer),
            dirname(__FILE__)
        );

        $templateLoader->load('SomeTemplateThatDoesNotExist');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit