public function run(ContextInterface $context) { if (!$context instanceof BehatContext) { return; } list($className, $methodName) = $this->getCallback(); $context->run($className, $methodName, $this->getValues()); }