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