mirror of
https://github.com/e107inc/e107.git
synced 2025-08-28 08:39:57 +02:00
Preparation for merge with e107 repository
Moved all test files to e107_tests subdirectory
This commit is contained in:
31
e107_tests/tests/unit/e107/Shims/InternalAlternateTest.php
Normal file
31
e107_tests/tests/unit/e107/Shims/InternalAlternateTest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2018 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*/
|
||||
|
||||
namespace e107\Shims;
|
||||
|
||||
function readfile($filename, $use_include_path = FALSE, $context = NULL)
|
||||
{
|
||||
foreach(debug_backtrace(false) as $line)
|
||||
{
|
||||
if ($line['class'] == InternalAlternateTest::class)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return @\readfile($filename, $use_include_path, $context);
|
||||
}
|
||||
|
||||
class InternalAlternateTest extends eShimsTest
|
||||
{
|
||||
public function testReadfile()
|
||||
{
|
||||
$this->testReadfileImplementation(array(InternalShims::class, 'readfile'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user