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:
Kamil Kokot
2019-03-04 14:14:22 +01:00
3 changed files with 81 additions and 1 deletions

View File

@@ -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(