PHP Class PhpSpec\Loader\ResourceLoader

Show file Open project: phpspec/phpspec

Public Methods

Method Description
__construct ( PhpSpec\Locator\ResourceManager $manager, MethodAnalyser $methodAnalyser )
load ( string $locator, integer | null $line = null ) : PhpSpec\Loader\Suite

Private Methods

Method Description
addErrorThrowingExampleToSuite ( PhpSpec\Locator\Resource $resource, PhpSpec\Loader\Suite $suite, Error $error )
lineIsInsideMethod ( integer $line, ReflectionMethod $method ) : boolean

Method Details

__construct() public method

public __construct ( PhpSpec\Locator\ResourceManager $manager, MethodAnalyser $methodAnalyser )
$manager PhpSpec\Locator\ResourceManager
$methodAnalyser PhpSpec\Util\MethodAnalyser

load() public method

public load ( string $locator, integer | null $line = null ) : PhpSpec\Loader\Suite
$locator string
$line integer | null
return PhpSpec\Loader\Suite