Lines Matching refs:context
55 ->given($context = new CUT())
56 ->when($result = $context->getVariables())
69 $context = new CUT()
72 ->exception(function () use ($context, $name) {
73 $context->getVariable($name);
85 $context = new CUT(),
86 $context->addVariable($name, $callable)
88 ->when($result = $context->getVariable($name))
97 ->given($context = new CUT())
98 ->when($result = $context->getConstants())
130 $context = new CUT()
133 ->exception(function () use ($context, $name) {
134 $context->getConstant($name);
144 $context = new CUT()
147 ->exception(function () use ($context, $name) {
148 $context->addConstant($name, 42);
159 $context = new CUT(),
160 $context->addConstant($name, $value)
162 ->when($result = $context->getConstant($name))
171 ->given($context = new CUT())
172 ->when($result = $context->getFunctions())
209 $context = new CUT()
212 ->exception(function () use ($context, $name) {
213 $context->getFunction($name);
223 $context = new CUT()
226 ->exception(function () use ($context, $name) {
227 $context->addFunction($name);
238 $context = new CUT(),
239 $context->addFunction($name, $callable)
241 ->when($result = $context->getFunction($name))
254 $context = new CUT(),
255 $context->addFunction($name, $callable)
257 ->when($result = $context->getFunction($name))