<commit_before><?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.rbac.php';

/**
 * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:22.
*/

class classRBACTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var RBAC
    */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
    */
    protected function setUp()
    {
        $this->object = new RBAC();
    }

    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
    */
    protected function tearDown()
    {
    }

    /**
     * This is the default method to test, if the class still having
     * the same number of methods.
    */
    public function testNumberOfMethodsInThisClass()
    {
        $methods = get_class_methods('RBAC');
        $this->assertTrue( count($methods) == 55, "now there are " . count($methods) . " methods.");
    }

    /**
    * @covers RBAC::__construct
    * @todo   Implement test__construct().
    */
    public function test__construct()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
        $r = new ReflectionMethod('RBAC', '__construct');
        $params = $r->getParameters();
    }

    /**
    * @covers RBAC::getSingleton
    * @todo   Implement testgetSingleton().
    */
    public function testgetSingleton()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' );
        $r = new ReflectionMethod('RBAC', 'getSingleton');
        $params = $r->getParameters();
    }

    /**
    * @covers RBAC::initRBAC
    * @todo   Implement testinitRBAC().
    */
    public function testinitRBAC()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('initRBAC', $methods ), 'exists method initRBAC' );
        $r = new ReflectionMethod('RBAC', 'initRBAC');
        $params = $r->getParameters();
    }

    /**
    * @covers RBAC::loadUserRolePermission
    * @todo   Implement testloadUserRolePermission().
    */
    public function testloadUserRolePermission()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('loadUserRolePermission', $methods ), 'exists method loadUserRolePermission' );
        $r = new ReflectionMethod('RBAC', 'loadUserRolePermission');
        $params = $r->getParameters();
        $this->assertTrue( $params[0]->getName() == 'sSystem');
        $this->assertTrue( $params[0]->isArray() == false);
        $this->assertTrue( $params[0]->isOptional () == false);
        $this->assertTrue( $params[1]->getName() == 'sUser');
        $this->assertTrue( $params[1]->isArray() == false);
        $this->assertTrue( $params[1]->isOptional () == false);
    }

    /**
    * @covers RBAC::checkAutomaticRegister
    * @todo   Implement testcheckAutomaticRegister().
    */
    public function testcheckAutomaticRegister()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('checkAutomaticRegister', $methods ), 'exists method checkAutomaticRegister' );
        $r = new ReflectionMethod('RBAC', 'checkAutomaticRegister');
        $params = $r->getParameters();
        $this->assertTrue( $params[0]->getName() == 'strUser');
        $this->assertTrue( $params[0]->isArray() == false);
        $this->assertTrue( $params[0]->isOptional () == false);
        $this->assertTrue( $params[1]->getName() == 'strPass');
        $this->assertTrue( $params[1]->isArray() == false);
        $this->assertTrue( $params[1]->isOptional () == false);
    }

    /**
    * @covers RBAC::VerifyWithOtherAuthenticationSource
    * @todo   Implement testVerifyWithOtherAuthenticationSource().
    */
    public function testVerifyWithOtherAuthenticationSource()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('VerifyWithOtherAuthenticationSource', $methods ), 'exists method VerifyWithOtherAuthenticationSource' );
        $r = new ReflectionMethod('RBAC', 'VerifyWithOtherAuthenticationSource');
        $params = $r->getParameters();
        $this->assertTrue( $params[0]->getName() == 'sAuthType');
        $this->assertTrue( $params[0]->isArray() == false);
        $this->assertTrue( $params[0]->isOptional () == false);
        $this->assertTrue( $params[1]->getName() == 'sAuthSource');
        $this->assertTrue( $params[1]->isArray() == false);
        $this->assertTrue( $params[1]->isOptional () == false);
        $this->assertTrue( $params[2]->getName() == 'aUserFields');
        $this->assertTrue( $params[2]->isArray() == false);
        $this->assertTrue( $params[2]->isOptional () == false);
        $this->assertTrue( $params[3]->getName() == 'sAuthUserDn');
        $this->assertTrue( $params[3]->isArray() == false);
        $this->assertTrue( $params[3]->isOptional () == false);
        $this->assertTrue( $params[4]->getName() == 'strPass');
        $this->assertTrue( $params[4]->isArray() == false);
        $this->assertTrue( $params[4]->isOptional () == false);
    }

    /**
    * @covers RBAC::VerifyLogin
    * @todo   Implement testVerifyLogin().
    */
    public function testVerifyLogin()<commit_msg>Fix test file "classRBACTest.php", the method "VerifyWithOtherAuthenticationSource" was changed in the core<commit_after><?php
require_once PATH_TRUNK . 'gulliver/thirdparty/smarty/libs/Smarty.class.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlform.php';
require_once PATH_TRUNK . 'gulliver/system/class.xmlDocument.php';
require_once PATH_TRUNK . 'gulliver/system/class.form.php';
require_once PATH_TRUNK . 'gulliver/system/class.dbconnection.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/propel/Propel.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/creole/Creole.php';
require_once PATH_TRUNK . 'gulliver/thirdparty/pear/PEAR.php';
require_once PATH_TRUNK . 'gulliver/system/class.rbac.php';

/**
 * Generated by ProcessMaker Test Unit Generator on 2012-07-12 at 22:32:22.
*/

class classRBACTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var RBAC
    */
    protected $object;

    /**
     * Sets up the fixture, for example, opens a network connection.
     * This method is called before a test is executed.
    */
    protected function setUp()
    {
        $this->object = new RBAC();
    }

    /**
     * Tears down the fixture, for example, closes a network connection.
     * This method is called after a test is executed.
    */
    protected function tearDown()
    {
    }

    /**
     * This is the default method to test, if the class still having
     * the same number of methods.
    */
    public function testNumberOfMethodsInThisClass()
    {
        $methods = get_class_methods('RBAC');
        $this->assertTrue( count($methods) == 55, "now there are " . count($methods) . " methods.");
    }

    /**
    * @covers RBAC::__construct
    * @todo   Implement test__construct().
    */
    public function test__construct()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('__construct', $methods ), 'exists method __construct' );
        $r = new ReflectionMethod('RBAC', '__construct');
        $params = $r->getParameters();
    }

    /**
    * @covers RBAC::getSingleton
    * @todo   Implement testgetSingleton().
    */
    public function testgetSingleton()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('getSingleton', $methods ), 'exists method getSingleton' );
        $r = new ReflectionMethod('RBAC', 'getSingleton');
        $params = $r->getParameters();
    }

    /**
    * @covers RBAC::initRBAC
    * @todo   Implement testinitRBAC().
    */
    public function testinitRBAC()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('initRBAC', $methods ), 'exists method initRBAC' );
        $r = new ReflectionMethod('RBAC', 'initRBAC');
        $params = $r->getParameters();
    }

    /**
    * @covers RBAC::loadUserRolePermission
    * @todo   Implement testloadUserRolePermission().
    */
    public function testloadUserRolePermission()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('loadUserRolePermission', $methods ), 'exists method loadUserRolePermission' );
        $r = new ReflectionMethod('RBAC', 'loadUserRolePermission');
        $params = $r->getParameters();
        $this->assertTrue( $params[0]->getName() == 'sSystem');
        $this->assertTrue( $params[0]->isArray() == false);
        $this->assertTrue( $params[0]->isOptional () == false);
        $this->assertTrue( $params[1]->getName() == 'sUser');
        $this->assertTrue( $params[1]->isArray() == false);
        $this->assertTrue( $params[1]->isOptional () == false);
    }

    /**
    * @covers RBAC::checkAutomaticRegister
    * @todo   Implement testcheckAutomaticRegister().
    */
    public function testcheckAutomaticRegister()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('checkAutomaticRegister', $methods ), 'exists method checkAutomaticRegister' );
        $r = new ReflectionMethod('RBAC', 'checkAutomaticRegister');
        $params = $r->getParameters();
        $this->assertTrue( $params[0]->getName() == 'strUser');
        $this->assertTrue( $params[0]->isArray() == false);
        $this->assertTrue( $params[0]->isOptional () == false);
        $this->assertTrue( $params[1]->getName() == 'strPass');
        $this->assertTrue( $params[1]->isArray() == false);
        $this->assertTrue( $params[1]->isOptional () == false);
    }

    /**
    * @covers RBAC::VerifyWithOtherAuthenticationSource
    * @todo   Implement testVerifyWithOtherAuthenticationSource().
    */
    public function testVerifyWithOtherAuthenticationSource()
    {
        $methods = get_class_methods($this->object);
        $this->assertTrue( in_array('VerifyWithOtherAuthenticationSource', $methods ), 'exists method VerifyWithOtherAuthenticationSource' );
        $r = new ReflectionMethod('RBAC', 'VerifyWithOtherAuthenticationSource');
        $params = $r->getParameters();
        $this->assertTrue( $params[0]->getName() == 'sAuthType');
        $this->assertTrue( $params[0]->isArray() == false);
        $this->assertTrue( $params[0]->isOptional () == false);
        $this->assertTrue( $params[1]->getName() == 'aUserFields');
        $this->assertTrue( $params[1]->isArray() == false);
        $this->assertTrue( $params[1]->isOptional () == false);
        $this->assertTrue( $params[2]->getName() == 'strPass');
        $this->assertTrue( $params[2]->isArray() == false);
        $this->assertTrue( $params[2]->isOptional () == false);
    }

    /**
    * @covers RBAC::VerifyLogin
    * @todo   Implement testVerifyLogin().
    */
    public function testVerifyLogin()
{'fraction_non_alphanumeric': 0.15928595949193272, 'fraction_numerical': 0.006865774116031583, 'mean_word_length': 3.2513681138270702, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4933155', 'n_tokens_mistral': 3472, 'n_tokens_neox': 3512, 'n_words': 680}