2014-05-06 18:15:35 +02:00
|
|
|
<?php
|
|
|
|
abstract class AbstractFullApiTest extends AbstractTest
|
|
|
|
{
|
|
|
|
protected $testedJobs = [];
|
|
|
|
|
|
|
|
public function teardown()
|
|
|
|
{
|
|
|
|
$testedJobs = array_map(function($job)
|
|
|
|
{
|
|
|
|
return get_class($job);
|
|
|
|
}, $this->testedJobs);
|
2014-05-17 10:10:38 +02:00
|
|
|
$allJobs = Api::getAllJobClassNames();
|
2014-05-06 18:15:35 +02:00
|
|
|
foreach ($allJobs as $x)
|
|
|
|
{
|
|
|
|
if (!in_array($x, $testedJobs))
|
|
|
|
$this->assert->fail($x . ' appears to be untested');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|