- Adds unit tests for Cron Trigger class
This commit is contained in:
9
tests/unit/Cron/CronTriggerMockMethodWithException.php
Normal file
9
tests/unit/Cron/CronTriggerMockMethodWithException.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Cron\Triggers;
|
||||
|
||||
class MockMethodWithException {
|
||||
static function run() {
|
||||
throw new \Exception('Exception thrown');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user