['"app_backend_url" has been updated in the phpunit.xml.']]; } /** * Check if url has subdomains. * * @param string $url * @return array */ public function checkDomain($url) { $messages = []; $pattern = '/([-%\w]*?\.\w+)/'; if (preg_match($pattern, $url) === false) { $messages['error'][] = 'Instance should have domain name with at least one subdomain to function correctly. Examples:' . PHP_EOL . "\tValid: http://magento.dev/, https://mage.local/." . PHP_EOL . "\tInvalid: http://localhost/, https://magento/."; } return $messages; } }