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