示例#1
0
/**
 * Retrieve the symfony application container for the current Symfony application.
 * @return ContainerInterface
 */
function container()
{
    return Suite::current()->symfony->getContainer();
}
示例#2
0
文件: init.php 项目: crysalead/kahlan
 function skipIf($condition)
 {
     $current = Specification::current() ?: Suite::current();
     return $current->skipIf($condition);
 }
示例#3
0
文件: Helpers.php 项目: jails/testing
/**
 * Gets the browser session.
 *
 * @param  string  $session The session name.
 * @return Session
 */
function browser($session = null)
{
    return Suite::current()->mink->getSession($session);
}