Skip to content

Commit c1712c5

Browse files
committed
chore(tests): update tests with EXPECT_REGEX
1 parent c777c6f commit c1712c5

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

tests/integration/frameworks/laravel/test_horizon_error_path.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
null
3636
*/
3737

38+
/*EXPECT_REGEX
39+
foobar
40+
Custom/foobar
41+
Error handle function
42+
43+
Fatal error: Uncaught Error: Error occurred in .*mock_horizon_error_path.php:.*
44+
*/
45+
3846
require_once(__DIR__ . '/mock_horizon_error_path.php');
3947
require_once(__DIR__.'/../../../include/integration.php');
4048

tests/integration/frameworks/laravel/test_horizon_exception_path.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
null
3636
*/
3737

38+
/*EXPECT_REGEX
39+
foobar
40+
Custom/foobar
41+
Exception handle function
42+
43+
Fatal error: Uncaught Exception: Exception occurred in .*mock_horizon_exception_path.php:.*
44+
*/
45+
3846
require_once(__DIR__ . '/mock_horizon_exception_path.php');
3947
require_once(__DIR__.'/../../../include/integration.php');
4048

tests/integration/frameworks/laravel/test_supervisor_error_path.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
null
3636
*/
3737

38+
/*EXPECT_REGEX
39+
foobar
40+
Custom/foobar
41+
Error handle function
42+
43+
Fatal error: Uncaught Error: Error occurred in .*mock_supervisor_error_path.php:.*
44+
*/
45+
3846
require_once(__DIR__ . '/mock_supervisor_error_path.php');
3947
require_once(__DIR__.'/../../../include/integration.php');
4048

tests/integration/frameworks/laravel/test_supervisor_exception_path.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
null
3636
*/
3737

38+
/*EXPECT_REGEX
39+
foobar
40+
Custom/foobar
41+
Exception handle function
42+
43+
Fatal error: Uncaught Exception: Exception occurred in .*mock_supervisor_exception_path.php:.*
44+
*/
45+
3846
require_once(__DIR__ . '/mock_supervisor_exception_path.php');
3947
require_once(__DIR__.'/../../../include/integration.php');
4048

0 commit comments

Comments
 (0)