src/PHPCoverFish/CoverFishScanner.php
public function analyseCoverAnnotations($phpDocBlock, CoverFishPHPUnitTest $phpUnitTest)
    {
        $this->validatorCollection->clear();
        $phpUnitTest->clearCoverMappings();
        $phpUnitTest->clearCoverAnnotation();

        /** @var string $cover */
        foreach ($phpDocBlock['covers'] as $cover) {
            $phpUnitTest->addCoverAnnotation($cover);
            $this->addCoverageValidatorPoolForCover($cover);
        }

        $phpUnitTest = $this->validateAndReturnMapping($phpUnitTest);
        $this->phpUnitFile->addTest($phpUnitTest);
    }
public function analyseCoverAnnotations($phpDocBlock, CoverFishPHPUnitTest $phpUnitTest)
    {
        $this->validatorCollection->clear();
        $phpUnitTest->clearCoverMappings();
        $phpUnitTest->clearCoverAnnotation();

        /** @var string $cover */
        foreach ($phpDocBlock['covers'] as $cover) {
            $phpUnitTest->addCoverAnnotation($cover);
            $this->addCoverageValidatorPoolForCover($cover);
        }

        $phpUnitTest = $this->validateAndReturnMapping($phpUnitTest);
        $this->phpUnitFile->addTest($phpUnitTest);
    }
public function analyseCoverAnnotations ( $ phpDocBlock , CoverFishPHPUnitTest $ phpUnitTest ) { $ this -> validatorCollection -> clear ( ) ; $ phpUnitTest -> clearCoverMappings ( ) ; $ phpUnitTest -> clearCoverAnnotation ( ) ; /** @var string $cover */ foreach ( $ phpDocBlock [ 'covers' ] as $ cover ) { $ phpUnitTest -> addCoverAnnotation ( $ cover ) ; $ this -> addCoverageValidatorPoolForCover ( $ cover ) ; } $ phpUnitTest = $ this -> validateAndReturnMapping ( $ phpUnitTest ) ; $ this -> phpUnitFile -> addTest ( $ phpUnitTest ) ; }
scan all annotations inside one single unit test file

@param array                $phpDocBlock
@param CoverFishPHPUnitTest $phpUnitTest
scan all annotations inside one single unit test file