<commit_before><?php
namespace AmidaMVC\Tests\AppSimple\testLoader;
error_reporting( E_ALL );
require( __DIR__ . '/../../src/AmidaMVC/bootstrap.php' );

class TestLoader extends \AmidaMVC\AppSimple\Loader
{
    function getLoadClass() {
        return $this->_loadClass;
    }
}

class testCtrl
{
    var $loadInfo = array();
    var $redirectPath = NULL;
    var $commands = array();
    var $action = 'defaultAction';
    var $myAction = NULL;
    var $pageNotFoundFile = '';
    function getPathInfo() {
        return 'test';
    }
    function getLocation( $file=NULL ) {
        if( isset( $file ) ) return 'loc/' . $file;
        return 'loc';
    }
    function redirect( $path ) {
        $this->redirectPath = $path;
    }
    function getCommands() {
        return $this->commands;
    }
    function setAction( $action ) {
        $this->action = $action;
    }
    function getOption( $name ) {
        if( $name == 'pageNotFound_file' ) {
            return $this->pageNotFoundFile;
        }
        return FALSE;
    }
    function defaultAct() {
        return 'default';
    }
    function setMyAction( $action ) {
        $this->myAction = $action;
    }
}

class testPageObj {
    var $content = '';
    var $contentType = 'test';
    function setContent( $content ) {
        $this->content = $content;
    }
    function getContent() {
        return $this->content;
    }
    function contentType( $type=NULL ) {
        if( isset( $type ) ) {
            $this->contentType = $type;
        }
        return $this->contentType;
    }
}

class loadTestClass {
    /**
     * @var \AmidaMVC\Tools\Load
     */
    static $_loadClass = '\AmidaMVC\Tools\Load';
    static function getFileType( $file ) {
        $class = self::$_loadClass;
        return $class::getFileType( $file );
    }
    static function isView( $file ) {
        $class = self::$_loadClass;
        return $class::isView( $file );
    }
    static function isAsIs( $file ) {
        $class = self::$_loadClass;
        return $class::isAsIs( $file );
    }
    static function getContentsByBuffer( $file ) {
        return 'got contents by buffer...';
    }
    static function getContentsByGet( $file ) {
        return 'got contntes by get...';
    }
}
class test_AppSimple_Loader extends \PHPUnit_Framework_TestCase<commit_msg>added a blank line; just separate class inbetweens.<commit_after><?php
namespace AmidaMVC\Tests\AppSimple\testLoader;
error_reporting( E_ALL );
require( __DIR__ . '/../../src/AmidaMVC/bootstrap.php' );

class TestLoader extends \AmidaMVC\AppSimple\Loader
{
    function getLoadClass() {
        return $this->_loadClass;
    }
}

class testCtrl
{
    var $loadInfo = array();
    var $redirectPath = NULL;
    var $commands = array();
    var $action = 'defaultAction';
    var $myAction = NULL;
    var $pageNotFoundFile = '';
    function getPathInfo() {
        return 'test';
    }
    function getLocation( $file=NULL ) {
        if( isset( $file ) ) return 'loc/' . $file;
        return 'loc';
    }
    function redirect( $path ) {
        $this->redirectPath = $path;
    }
    function getCommands() {
        return $this->commands;
    }
    function setAction( $action ) {
        $this->action = $action;
    }
    function getOption( $name ) {
        if( $name == 'pageNotFound_file' ) {
            return $this->pageNotFoundFile;
        }
        return FALSE;
    }
    function defaultAct() {
        return 'default';
    }
    function setMyAction( $action ) {
        $this->myAction = $action;
    }
}

class testPageObj {
    var $content = '';
    var $contentType = 'test';
    function setContent( $content ) {
        $this->content = $content;
    }
    function getContent() {
        return $this->content;
    }
    function contentType( $type=NULL ) {
        if( isset( $type ) ) {
            $this->contentType = $type;
        }
        return $this->contentType;
    }
}

class loadTestClass {
    /**
     * @var \AmidaMVC\Tools\Load
     */
    static $_loadClass = '\AmidaMVC\Tools\Load';
    static function getFileType( $file ) {
        $class = self::$_loadClass;
        return $class::getFileType( $file );
    }
    static function isView( $file ) {
        $class = self::$_loadClass;
        return $class::isView( $file );
    }
    static function isAsIs( $file ) {
        $class = self::$_loadClass;
        return $class::isAsIs( $file );
    }
    static function getContentsByBuffer( $file ) {
        return 'got contents by buffer...';
    }
    static function getContentsByGet( $file ) {
        return 'got contntes by get...';
    }
}

class test_AppSimple_Loader extends \PHPUnit_Framework_TestCase
{'fraction_non_alphanumeric': 0.1343570057581574, 'fraction_numerical': 0.0, 'mean_word_length': 2.2569444444444446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '904933', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1438, 'n_words': 336}