private static function get_event_file( $event, &$line ) {
		if ( method_exists( $event, 'getScenario' ) ) {
			$scenario_feature = $event->getScenario();
		} elseif ( method_exists( $event, 'getFeature' ) ) {
			$scenario_feature = $event->getFeature();
		} elseif ( method_exists( $event, 'getOutline' ) ) {
			$scenario_feature = $event->getOutline();
		} else {
			return null;
		}
		$line = $scenario_feature->getLine();
		return $scenario_feature->getFile();
	}
private static function get_event_file( $event, &$line ) {
		if ( method_exists( $event, 'getScenario' ) ) {
			$scenario_feature = $event->getScenario();
		} elseif ( method_exists( $event, 'getFeature' ) ) {
			$scenario_feature = $event->getFeature();
		} elseif ( method_exists( $event, 'getOutline' ) ) {
			$scenario_feature = $event->getOutline();
		} else {
			return null;
		}
		$line = $scenario_feature->getLine();
		return $scenario_feature->getFile();
	}
private static function get_event_file ( $ event , & $ line ) { if ( method_exists ( $ event , 'getScenario' ) ) { $ scenario_feature = $ event -> getScenario ( ) ; } elseif ( method_exists ( $ event , 'getFeature' ) ) { $ scenario_feature = $ event -> getFeature ( ) ; } elseif ( method_exists ( $ event , 'getOutline' ) ) { $ scenario_feature = $ event -> getOutline ( ) ; } else { return null ; } $ line = $ scenario_feature -> getLine ( ) ; return $ scenario_feature -> getFile ( ) ; }
Get the file and line number for the current behat event.
Get the file and line number for the current behat event .