public function testListJobs() { $before = $this->object->listJobs(); $job = $this->object->newJob('1 2 3 4 5 w'); $this->object->add($job); $job2 = $this->object->newJob('2 3 4 5 6 w'); $this->object->add($job2, '/tmp/a1'); $this->object->save(); $saved = $this->object->listJobs(); $this->assertNotEquals($before, $saved); $this->assertNotEmpty($before); $this->assertNotEmpty($saved); $initial = '* * * * * w > /tmp/sysload'; $this->assertContains($initial, $saved); $this->assertContains($initial, $before); }