Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrolGenhald committed Jun 22, 2022
1 parent 7960382 commit 4e3c2ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/ArrayAccessTest.php
Expand Up @@ -936,7 +936,9 @@ function foo(SimpleXMLElement $s) : SimpleXMLElement {
'simpleXmlArrayFetchChildren' => [
'code' => '<?php
function iterator(SimpleXMLElement $xml): iterable {
foreach ($xml->children() as $img) {
$children = $xml->children();
assert($children !== null);
foreach ($children as $img) {
yield $img["src"] ?? "";
}
}',
Expand Down
4 changes: 2 additions & 2 deletions tests/ProjectCheckerTest.php
Expand Up @@ -40,8 +40,8 @@ class ProjectCheckerTest extends TestCase
/** @var ProjectAnalyzer */
protected $project_analyzer;

private const EXPECTED_OUTPUT = "Target PHP version: 8.1 (set by tests) Extensions enabled: dom (unsupported "
. "extensions: simplexml, ctype, json, libxml, mbstring, tokenizer)\n"
private const EXPECTED_OUTPUT = "Target PHP version: 8.1 (set by tests) Extensions enabled: dom, simplexml "
. "(unsupported extensions: ctype, json, libxml, mbstring, tokenizer)\n"
. "Scanning files...\n"
. "Analyzing files...\n"
. "\n"
Expand Down

0 comments on commit 4e3c2ea

Please sign in to comment.