PhpSpec\Process\Context\ExecutionContext::getGeneratedTypes PHP Метод

getGeneratedTypes() публичный Метод

public getGeneratedTypes ( ) : array
Результат array
    public function getGeneratedTypes();

Usage Example

Пример #1
0
 /**
  * @throws PrerequisiteFailedException
  */
 public function guardPrerequisites()
 {
     $undefinedTypes = array();
     foreach ($this->executionContext->getGeneratedTypes() as $type) {
         if (!class_exists($type) && !interface_exists($type)) {
             $undefinedTypes[] = $type;
         }
     }
     if ($undefinedTypes) {
         throw new PrerequisiteFailedException(sprintf("The type%s %s %s generated but could not be loaded. Do you need to configure an autoloader?\n", count($undefinedTypes) > 1 ? 's' : '', join(', ', $undefinedTypes), count($undefinedTypes) > 1 ? 'were' : 'was'));
     }
 }
All Usage Examples Of PhpSpec\Process\Context\ExecutionContext::getGeneratedTypes