403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.128
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/php7.3/test/Cache_Lite/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/php7.3/test/Cache_Lite/tests/ErrorDieTest.php
<?php

/**
 * Test for CACHE_LITE_ERROR_DIE
 *
 * @package Cache_Lite
 * @category Caching
 * @version $Id$
 * @author Markus Tacker <tacker@php.net>
 */

require_once __DIR__ . '/tmpdir.inc';

class ErrorDieTest extends PHPUnit_Framework_TestCase
{
	public function testErrorDie()
	{
        exec('/usr/bin/env php ' . __DIR__ . DIRECTORY_SEPARATOR . 'errordie.php', $out);
        $message = join(PHP_EOL, $out);
        $message = str_replace(tmpDir(), '<cachedir>/', $message); // Remove system specific cache dir
        $expected = join(PHP_EOL, array(
            '==> First call (cache should be missed)',
            'Cache Missed !',
            '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache_Lite : Unable to write cache file : <cachedir>/31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277',
        ));

        $this->assertEquals($message, $expected);

	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit