Created
May 1, 2014 23:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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