<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 . 'workflow/engine/classes/class.archive.php';

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

class classgzip_fileTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var gzip_file
    */
    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 gzip_file();
    }

    /**
     * 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('gzip_file');        $this->assertTrue( count($methods) == 18);
    }

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

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

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

  } <commit_msg>phpunit classgzip_fileTest.php<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 . 'workflow/engine/classes/class.archive.php';

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

class classgzip_fileTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var gzip_file
    */
    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 gzip_file('name');
    }

    /**
     * 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('gzip_file');
        $this->assertTrue( count($methods) == 18);
    }

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

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

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

{'fraction_non_alphanumeric': 0.13512128459173214, 'fraction_numerical': 0.006491288008199521, 'mean_word_length': 3.0944055944055946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '3226784', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1876, 'n_words': 387}