diff --git a/drupalci.yml b/drupalci.yml index 42073f0..cf584ab 100755 --- a/drupalci.yml +++ b/drupalci.yml @@ -6,6 +6,3 @@ build: csslint: eslint: phpcs: - testing: - run_tests.standard: - types: 'PHPUnit-Functional' diff --git a/scheduler.module b/scheduler.module index c67a267..509dc4f 100644 --- a/scheduler.module +++ b/scheduler.module @@ -596,3 +596,31 @@ function _scheduler_get_scheduler_enabled_node_types($action) { return $bundle->getThirdPartySetting('scheduler', $action . '_enable', $config->get('default_' . $action . '_enable')); }); } + + +/** + * Temp + */ +function checkNum($number) { + if($number>1) { + throw new Exception($number . ' is too big'); + } + return true; +} +function testCatch() { + foreach ([3,4] as $a) { + foreach ([1,3] as $b) { + try { + checkNum($b); + dsm($b . ' is OK'); + } + catch(Exception $e) { + echo 'Message: ' .$e->getMessage() . "\n"; + continue; + } + } + } +} + + +