for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleSAML\Module\monitor;
abstract class TestCaseFactory extends TestFactory
{
private $testsuite = null;
private $category = null;
private $subject = null;
public function __construct($testsuite, $input)
assert($testsuite instanceof TestSuite);
assert(is_array($input));
$this->setTestSuite($testsuite);
$this->setInput($input);
$this->initialize();
$this->setInput(null);
$this->invokeTest();
}
/*
* @return void
*/
protected function initialize()
private function setTestSuite($testsuite)
$this->testsuite = $testsuite;
* @return TestSuite
public function getTestSuite()
assert($this->testsuite instanceof TestSuite);
return $this->testsuite;
protected function setSubject($subject)
assert(is_string($subject));
$this->subject = $subject;
* @return string
public function getSubject()
assert(is_string($this->subject));
return $this->subject;
protected function setCategory($category)
assert(is_string($category));
$this->category = $category;
public function getCategory()
assert(is_string($this->category));
return $this->category;
abstract protected function invokeTest();