<commit_before><?php
namespace Respect;                               
                                                 
class DocItemTest extends \PHPUnit_Framework_TestCase
{
    private $docItem;
    public function setUp()
    {
        $this->docItem = New DocItem( 'Respect\DocItem');
    }
    public function tearDown()
    {
        $this->docItem = null;
    }
    public function test_getName()
    {
        $this->AssertEquals('Respect\DocItem', $this->docItem->getName());
    }
    public function test_getDocComment()
    {
        $returnValue = "/**
 * DocItem Reflection Class to speak where is the socks to rock it.  
 * 
 * @author <NAME> <<EMAIL>> 
 */";
        $this->AssertEquals($returnValue, $this->docItem->getDocComment());
}

    public function getMethodsDataprovider()
{    
        return array(
                array(0,'__construct'),
                array(1,'getName'),
                array(2,'getDocComment'),
                array(3,'__call')
        );
    }
    /**
     * @dataProvider getMethodsDataprovider  
     */
    public function test_getMethods($idx, $name)
    {
        $methods = $this->docItem->getMethods();
        $this->AssertEquals($methods[$idx]->name, $name );
    }
    public function test_getSections()
    {
        $docItem = New DocItem( 'Respect\DocItem');
             var_dump($docItem->getSections());
    }
    
}<commit_msg>test getSections<commit_after><?php
namespace Respect;                               
                                                 
class DocItemTest extends \PHPUnit_Framework_TestCase
{
    private $docItem;
    public function setUp()
    {
        $this->docItem = New DocItem( 'Respect\DocItem');
    }
    public function tearDown()
    {
        $this->docItem = null;
    }
    public function test_getName()
    {
        $this->AssertEquals('Respect\DocItem', $this->docItem->getName());
    }
    public function test_getDocComment()
    {
        $returnValue = "/**
 * DocItem Reflection Class to speak where is the socks to rock it.  
 * 
 * @author <NAME> <<EMAIL>> 
 */";
        $this->AssertEquals($returnValue, $this->docItem->getDocComment());
}

    public function getMethodsDataprovider()
{    
        return array(
                array(0,'__construct'),
                array(1,'getName'),
                array(2,'getDocComment'),
                array(3,'__call')
        );
    }
    /**
     * @dataProvider getMethodsDataprovider  
     */
    public function test_getMethods($idx, $name)
    {
        $methods = $this->docItem->getMethods();
        $this->AssertEquals($methods[$idx]->name, $name );
    }
    public function test_getSections()
    {
            $this->AssertInstanceOf('SplObjectStorage',$this->docItem->getSections());
    }
    
}
{'fraction_non_alphanumeric': 0.13137114142139267, 'fraction_numerical': 0.002871500358937545, 'mean_word_length': 1.9492063492063492, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '509728', 'n_tokens_mistral': 794, 'n_tokens_neox': 775, 'n_words': 145}