/** * Retrieve the symfony application container for the current Symfony application. * @return ContainerInterface */ function container() { return Suite::current()->symfony->getContainer(); }
function skipIf($condition) { $current = Specification::current() ?: Suite::current(); return $current->skipIf($condition); }
/** * Gets the browser session. * * @param string $session The session name. * @return Session */ function browser($session = null) { return Suite::current()->mink->getSession($session); }