src/Behat/Behat/Context/Suite/Setup/SuiteWithContextsSetup.php
private function findClasspathAndClass($class)
    {
        if (false !== $pos = strrpos($class, '\\')) {
            // namespaced class name
            $classpath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)) . DIRECTORY_SEPARATOR;
            $classname = substr($class, $pos + 1);

            return array($classpath, $classname);
        }

        // PEAR-like class name
        $classpath = null;
        $classname = $class;

        return array($classpath, $classname);
    }
private function findClasspathAndClass($class)
    {
        if (false !== $pos = strrpos($class, '\\')) {
            // namespaced class name
            $classpath = str_replace('\\', DIRECTORY_SEPARATOR, substr($class, 0, $pos)) . DIRECTORY_SEPARATOR;
            $classname = substr($class, $pos + 1);

            return array($classpath, $classname);
        }

        // PEAR-like class name
        $classpath = null;
        $classname = $class;

        return array($classpath, $classname);
    }
private function findClasspathAndClass ( $ class ) { if ( false !== $ pos = strrpos ( $ class , '\\' ) ) { // namespaced class name $ classpath = str_replace ( '\\' , DIRECTORY_SEPARATOR , substr ( $ class , 0 , $ pos ) ) . DIRECTORY_SEPARATOR ; $ classname = substr ( $ class , $ pos + 1 ) ; return array ( $ classpath , $ classname ) ; } // PEAR-like class name $ classpath = null ; $ classname = $ class ; return array ( $ classpath , $ classname ) ; }
Finds classpath and classname from class.

@param string $class

@return array
Finds classpath and classname from class .