Skip to content

Instantly share code, notes, and snippets.

@jhedstrom
Created May 1, 2014 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhedstrom/0c06cf2caca1cac0b517 to your computer and use it in GitHub Desktop.
Save jhedstrom/0c06cf2caca1cac0b517 to your computer and use it in GitHub Desktop.
How do disable module shutdown functions on long-running Behat Drupal Extension processes
<?php
/**
* Register a shutdown function.
*
* We manually call shutdown functions, so register one to exit immediately.
*
* @BeforeSuite
*/
public static function registerShutdownFunction() {
register_shutdown_function('FeatureContext::shutdownFunction');
}
/**
* The shutdown function to skip all others.
*/
public static function shutdownFunction() {
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment