1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Merge pull request #6708 from orklah/skipped

skipped tests
This commit is contained in:
orklah 2021-10-21 13:17:03 +02:00 committed by GitHub
commit f0f0b4a8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ class ClassLoadOrderTest extends TestCase
$a = A::B;
class C {}',
],
'SKIPPED-deferredReference' => [
'deferredReference' => [
'<?php
class B {
const C = A;

View File

@ -71,7 +71,7 @@ class Php70Test extends TestCase
'$a' => 'string',
],
],
'SKIPPED-nullCoalesceWithReference' => [
'nullCoalesceWithReference' => [
'<?php
$var = 0;
($a =& $var) ?? "hello";',

View File

@ -559,7 +559,7 @@ class FunctionClassStringTemplateTest extends TestCase
f(A::class);
f(B::class);',
],
'SKIPPED-compareToExactClassString' => [
'compareToExactClassString' => [
'<?php
/**
* @template T as object

View File

@ -1517,7 +1517,7 @@ class FunctionTemplateTest extends TestCase
if (is_array($iterable)) {}
}'
],
'SKIPPED-transformNestedTemplateWherePossible' => [
'transformNestedTemplateWherePossible' => [
'<?php
/**
* @template TValue

View File

@ -630,7 +630,7 @@ class ConditionalTest extends \Psalm\Tests\TestCase
$b_or_d->foo();
}',
],
'SKIPPED-isArrayOnArrayKeyOffset' => [
'isArrayOnArrayKeyOffset' => [
'<?php
/** @var array{s:array<mixed, array<int, string>|string>} */
$doc = [];
@ -2923,7 +2923,7 @@ class ConditionalTest extends \Psalm\Tests\TestCase
echo $i === 3;',
'error_message' => 'TypeDoesNotContainType',
],
'SKIPPED-noIntersectionOfArrayOrTraversable' => [
'noIntersectionOfArrayOrTraversable' => [
'<?php
function foo(iterable $iterable) : void {
if (\is_array($iterable) && $iterable instanceof \Traversable) {}