mageekguy\atoum\reports\asynchronous\coveralls::getBranchFinder PHP Метод

getBranchFinder() публичный Метод

public getBranchFinder ( )
    public function getBranchFinder()
    {
        return $this->branchFinder;
    }

Usage Example

Пример #1
0
<?php

//.atoum.php
use mageekguy\atoum;
use mageekguy\atoum\reports;
$coveralls = new reports\asynchronous\coveralls('src', 'tRlttWBh45WhcNznBSaUkYeR2cVLsWzKi');
$defaultFinder = $coveralls->getBranchFinder();
$coveralls->setBranchFinder(function () use($defaultFinder) {
    if (($branch = getenv('TRAVIS_BRANCH')) === false) {
        $branch = $defaultFinder();
    }
    return $branch;
})->setServiceName(getenv('TRAVIS') ? 'travis-ci' : null)->setServiceJobId(getenv('TRAVIS_JOB_ID') ?: null)->addWriter();
$runner->addReport($coveralls);
$script->addDefaultReport();
All Usage Examples Of mageekguy\atoum\reports\asynchronous\coveralls::getBranchFinder