-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3219184: Remove Behat for running functional test and use comm…
…ands directly
- Loading branch information
Showing
9 changed files
with
81 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php declare(strict_types=1); | ||
|
||
use Symfony\Component\Yaml\Exception\ParseException; | ||
use Symfony\Component\Yaml\Yaml; | ||
|
||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
$data = file_get_contents(__DIR__ . '/../../deprecation-index.yml'); | ||
if ($data === false) { | ||
throw new \RuntimeException('The deprecation-index.yml could not be read.'); | ||
} | ||
|
||
// Ensure YAML is parseable. | ||
try { | ||
$parsed_data = Yaml::parse($data); | ||
} | ||
catch (ParseException $exception) { | ||
throw new \RuntimeException( | ||
"The YAML was not valid. This is often caused by unescaped quotes. | ||
Please use `'` to escape a single quote.\n\n{$exception->getMessage()}" | ||
); | ||
} | ||
|
||
# Unicode characters sometimes get added when copy & pasting. | ||
# They are not intended and don't match as easily. | ||
if (mb_detect_encoding($data, 'ASCII', true) === false) { | ||
throw new \RuntimeException('The file contains non ASCII characters. | ||
Please make sure `\` and spaces are only using ASCII characters.'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.