src/Behat/Symfony2Extension/Context/Initializer/KernelAwareInitializer.php
private function usesKernelDictionary(Context $context)
    {
        $refl = new \ReflectionObject($context);
        if (method_exists($refl, 'getTraitNames')) {
            if (in_array('Behat\\Symfony2Extension\\Context\\KernelDictionary', $refl->getTraitNames())) {
                return true;
            }
        }

        return false;
    }
private function usesKernelDictionary(Context $context)
    {
        $refl = new \ReflectionObject($context);
        if (method_exists($refl, 'getTraitNames')) {
            if (in_array('Behat\\Symfony2Extension\\Context\\KernelDictionary', $refl->getTraitNames())) {
                return true;
            }
        }

        return false;
    }
private function usesKernelDictionary ( Context $ context ) { $ refl = new \ ReflectionObject ( $ context ) ; if ( method_exists ( $ refl , 'getTraitNames' ) ) { if ( in_array ( 'Behat\\Symfony2Extension\\Context\\KernelDictionary' , $ refl -> getTraitNames ( ) ) ) { return true ; } } return false ; }
Checks whether the context uses the KernelDictionary trait.

@param Context $context

@return boolean
Checks whether the context uses the KernelDictionary trait .