/** * (PHP 5 >= 5.4.0)<br/> * Specify data which should be serialized to JSON * @link http://php.net/manual/en/jsonserializable.jsonserialize.php * @return mixed data which can be serialized by <b>json_encode</b>, * which is a value of any type other than a resource. */ function jsonSerialize() { $data = ['file path' => $this->sourceFile, 'class name' => $this->phpClassName->getFullyQualifiedClassName(), 'method name' => $this->methodName]; return $data; }
/** * @return bool */ public function isTheTestRunAgainstTheToolItself() { $fullClassName = $this->inPhpClassName->getFullyQualifiedClassName(); $isTheTestRunAgainstTheToolItself = StringUtil::isStringStartWith($fullClassName, '\\Box\\TestScribe'); return $isTheTestRunAgainstTheToolItself; }