public function addTests(array $tests) { if (!empty($this->tests) && is_array($this->tests)) { $this->tests = array_merge($this->tests, $tests); } else { $this->tests = $tests; } }