Merge branch '2.0'
* 2.0: Generate changelog for v2.0.4 and v2.0.5 Allow accessing a context in another context
This commit is contained in:
@@ -72,9 +72,11 @@ final class InitializedSymfonyExtensionEnvironment implements SymfonyExtensionEn
|
||||
}
|
||||
|
||||
/**
|
||||
* @see http://behat.org/en/latest/cookbooks/accessing_contexts_from_each_other.html
|
||||
*
|
||||
* @throws ContextNotFoundException
|
||||
*/
|
||||
private function getContext(string $class): Context
|
||||
public function getContext(string $class): Context
|
||||
{
|
||||
if (!isset($this->contexts[$class])) {
|
||||
throw new ContextNotFoundException(sprintf(
|
||||
|
||||
Reference in New Issue
Block a user