-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
! Its php8+ now, update deps as the testbase does not have to support…
… 7.x
- Loading branch information
Showing
9 changed files
with
39 additions
and
126 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,34 @@ | ||
<?php | ||
|
||
namespace PHPUnit\Extensions\SeleniumCommon; | ||
|
||
/** | ||
* If Ececution was stopped by calling exit(); | ||
* php does not append append.php, so no code coverage date is collected | ||
* We have to add shutdown handler to append this file manualy. | ||
* @author Arbuzov <info@whitediver.com> | ||
* | ||
*/ | ||
class PHPUnit_Extensions_SeleniumCommon_ExitHandler | ||
class ExitHandler | ||
{ | ||
/** | ||
* Register handler. | ||
* If project have own shutdown hanldler user have to add function to handler | ||
* | ||
*/ | ||
public static function init() | ||
{ | ||
register_shutdown_function( array( 'PHPUnit_Extensions_SeleniumCommon_ExitHandler', 'handle' ) ); | ||
} | ||
/** | ||
* Register handler. | ||
* If project have own shutdown hanldler user have to add function to handler | ||
* | ||
*/ | ||
public static function init() | ||
{ | ||
register_shutdown_function(array(ExitHandler::class, 'handle')); | ||
} | ||
|
||
/** | ||
* Manual include apendable files | ||
*/ | ||
public static function handle() | ||
{ | ||
$execFile = ini_get('auto_append_file'); | ||
if ($execFile!=='') { | ||
include_once ($execFile); | ||
} | ||
} | ||
/** | ||
* Manual include apendable files | ||
*/ | ||
public static function handle() | ||
{ | ||
$execFile = ini_get('auto_append_file'); | ||
if ($execFile!=='') { | ||
include_once ($execFile); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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