public function __construct()

in lib/php/libsdk/SDK/Build/PGO/TrainingCaseIterator.php [15:41]


	public function __construct(PGOConfig $conf)
	{
		$this->rewind();

		$this->conf = $conf;

		$items = glob($this->conf->getCasesTplDir() . DIRECTORY_SEPARATOR . "*");
		foreach ($items as $it) {
			if (!is_dir($it)) {
				continue;
			}

			if (!file_exists($this->getHandlerFilename($it))) {
				echo "Test case handler isn't present in '$it'.\n";
				continue;
			}

			if ($this->isInactive($it)) {
				echo "The test case in '$it' is marked inactive.\n";
				continue;
			}

			$this->items[] = $it;
		}


	}