Assumes that a specific PHP extension is loaded.

@param string $extension
@param string $message

@return void

@throws AssumptionViolatedException
963029
public static function assumeExtensionLoaded($extension, $message = ''): void
    {
        assumeThat(\extension_loaded($extension), is(true), $message);
    }
722034
public static function assumeCfgVar($name, $message = ''): void
    {
        assumeThat(get_cfg_var($name), is(not(false)), $message);
    }
222972
protected function appendMessage(string $message): void
    {
        $this->messages[] = $message;

        if (sizeof($this->messages) > $this->config['max_messages']) {
            array_shift($this->messages);
        }
    }
194334
protected function sendMessage(Message $message) {
		if(!$this->isIgnored($message)) {
			parent::sendMessage($message);
			$this->sentMessages[] = $message;
		}
	}
911176
public function extendDependent($rule, $extension, $message = null)
    {
        $this->dependentExtensions[$rule] = $extension;

        if ($message) {
            $this->fallbackMessages[Str::snake($rule)] = $message;
        }
    }
1008115
protected function log($message): void
    {
        if ($this->logger !== null) {
            $this->logger->log($message);
        }
    }
382998
protected function throwValidationException(string $message, string $prefix = null)
    {
        throw new ValidationException($message, $this->name, $prefix);
    }
609331
protected function assertStringStartsWith($prefix, $string, $message = '')
    {
        \PHPUnit\Framework\Assert::assertStringStartsWith($prefix, $string, $message);
    }
1069468
public function run(TestMessage $message)
    {
        $this->environment->load($this->reader);
        $this->message = $message;
        $this->listen($this->environment->getEventEmitter());
        $context = Context::getInstance();
        $this->looper->loop($context, $this->environment, $message);
    }
934990
public function add($message)
    {
        $this->_messages[] = $this->log_timestamp() . $message . PHP_EOL;
        $this->debug($message);
    }
235497
public function info($message, array $context = []) : void
    {
        /** @psalm-suppress UndefinedClass */
        SspLogger::info($message.($context ? " ".var_export($context, true) : ""));
    }
246375
public function emergency(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->emergency($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::EMERGENCY);
        }
    }
162283
public function log($message, $context = "[Strata]")
    {
        $logger = $this->getLogger();
        if (!is_null($logger)) {
            $logger->log($message, $context);
        }
    }
1094313
public function validate(Message $message)
    {
        if ($message->getTitleLength() > self::CHARACTER_LIMIT) {
            $message->addStatus(new LimitTheTitleLengthTo69CharactersStatus());
        }
    }
1324079
public function info(string $message, array $context = []){
        if($this->logger !== null){
            $this->logger->info($message, $context);
        }

        if($this->messagePanel !== null){
            $this->messagePanel->addMessage($message, LogLevel::INFO);
        }
    }
950827
public static function assertXMLValid($XML, string $message = '')
    {
        AssertHelper::assertMethodDependency(__CLASS__, __TRAIT__, 'assertXMLValid', ['assertThat']);
        self::assertThat($XML, new XMLValidConstraint(), $message);
    }
336548
public function endsWith($sub, $message = null)
    {
        $this->setRule(__FUNCTION__, function($val, $args)
                       {
                           $sub = $args[0];
                           return (strlen($val) === 0 || substr($val, -strlen($sub)) === $sub);
                       }, $message, array($sub));
        return $this;
    }