public function testGetTestedClassPath() { $this->if($testedClass = new \reflectionClass($this->getTestedClassName()))->then->string($this->getTestedClassPath())->isEqualTo($testedClass->getFilename()); }
public function getTestedClassPath() { if ($this->testedClassPath === null) { $testedClass = new \reflectionClass($this->getTestedClassName()); $this->testedClassPath = $testedClass->getFilename(); } return $this->testedClassPath; }