Skip to content
Snippets Groups Projects
Commit 42cb77b9 authored by Thomas Müller's avatar Thomas Müller
Browse files

TimedJob: make PhpUnit happy with asserts

parent 6127fee5
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ class TimedJob extends \PHPUnit_Framework_TestCase { ...@@ -41,6 +41,7 @@ class TimedJob extends \PHPUnit_Framework_TestCase {
$this->fail("job should have run"); $this->fail("job should have run");
} catch (JobRun $e) { } catch (JobRun $e) {
} }
$this->assertTrue(true);
} }
public function testShouldNotRunWithinInterval() { public function testShouldNotRunWithinInterval() {
...@@ -50,6 +51,7 @@ class TimedJob extends \PHPUnit_Framework_TestCase { ...@@ -50,6 +51,7 @@ class TimedJob extends \PHPUnit_Framework_TestCase {
} catch (JobRun $e) { } catch (JobRun $e) {
$this->fail("job should not have run"); $this->fail("job should not have run");
} }
$this->assertTrue(true);
} }
public function testShouldNotTwice() { public function testShouldNotTwice() {
...@@ -64,5 +66,6 @@ class TimedJob extends \PHPUnit_Framework_TestCase { ...@@ -64,5 +66,6 @@ class TimedJob extends \PHPUnit_Framework_TestCase {
$this->fail("job should not have run the second time"); $this->fail("job should not have run the second time");
} }
} }
$this->assertTrue(true);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment