szuru/tests/Tests/AbstractFullApiTest.php

20 lines
395 B
PHP
Raw Permalink Normal View History

<?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();
foreach ($allJobs as $x)
{
if (!in_array($x, $testedJobs))
$this->assert->fail($x . ' appears to be untested');
}
}
}