<commit_before><?php namespace ParaTest\Parser;

class ParserTest_GetClassTest extends \TestBase
{
    protected $parser;

    public function setUp()
    {
        $path = FIXTURES . DS . 'tests' . DS . 'UnitTestWithClassAnnotationTest.php';
        $this->parser = new Parser($path);
        $this->class = $this->parser->getClass();
    }

    public function testParsedClassHasName()
    {
        $this->assertEquals('Fixtures\\Tests\\UnitTestWithClassAnnotationTest', $this->class->getName());
    }

    public function testParsedClassHasDocBlock()
    {
        $this->assertEquals('/**
 * @runParallel
 * @pizzaBox
 */', $this->class->getDocBlock());
    }

    public function testParsedClassHasNamespace()
    {
        $this->assertEquals('Fixtures\\Tests', $this->class->getNamespace());
    }

    public function testParsedClassHasCorrectNumberOfTestMethods()
    {
        $methods = $this->class->getMethods();
        $this->assertEquals(4, sizeof($methods));                        
    }
}<commit_msg>test parsed class contains parent methods<commit_after><?php namespace ParaTest\Parser;

class ParserTest_GetClassTest extends \TestBase
{
    protected $parser;

    public function setUp()
    {
        $path = FIXTURES . DS . 'tests' . DS . 'UnitTestWithClassAnnotationTest.php';
        $this->parser = new Parser($path);
        $this->class = $this->parser->getClass();
    }

    public function testParsedClassHasName()
    {
        $this->assertEquals('Fixtures\\Tests\\UnitTestWithClassAnnotationTest', $this->class->getName());
    }

    public function testParsedClassHasDocBlock()
    {
        $this->assertEquals('/**
 * @runParallel
 * @pizzaBox
 */', $this->class->getDocBlock());
    }

    public function testParsedClassHasNamespace()
    {
        $this->assertEquals('Fixtures\\Tests', $this->class->getNamespace());
    }

    public function testParsedClassHasCorrectNumberOfTestMethods()
    {
        $methods = $this->class->getMethods();
        $this->assertEquals(4, sizeof($methods));                        
    }

    public function testParsedClassWithParentHasCorrectNumberOfTestMethods()
    {
        $parser = new Parser(FIXTURES . DS . 'tests' . DS . 'UnitTestWithErrorTest.php');
        $class = $parser->getClass();
        $methods = $class->getMethods();
        $this->assertEquals(4, sizeof($methods));
    }
}
{'fraction_non_alphanumeric': 0.14207650273224043, 'fraction_numerical': 0.0012610340479192938, 'mean_word_length': 2.927392739273927, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 38, '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': '2359055', 'n_tokens_mistral': 678, 'n_tokens_neox': 664, 'n_words': 115}