mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
skipped tests
This commit is contained in:
parent
3d9f973203
commit
8b98e645eb
@ -33,7 +33,7 @@ class ClassLoadOrderTest extends TestCase
|
||||
$a = A::B;
|
||||
class C {}',
|
||||
],
|
||||
'SKIPPED-deferredReference' => [
|
||||
'deferredReference' => [
|
||||
'<?php
|
||||
class B {
|
||||
const C = A;
|
||||
|
@ -71,7 +71,7 @@ class Php70Test extends TestCase
|
||||
'$a' => 'string',
|
||||
],
|
||||
],
|
||||
'SKIPPED-nullCoalesceWithReference' => [
|
||||
'nullCoalesceWithReference' => [
|
||||
'<?php
|
||||
$var = 0;
|
||||
($a =& $var) ?? "hello";',
|
||||
|
@ -559,7 +559,7 @@ class FunctionClassStringTemplateTest extends TestCase
|
||||
f(A::class);
|
||||
f(B::class);',
|
||||
],
|
||||
'SKIPPED-compareToExactClassString' => [
|
||||
'compareToExactClassString' => [
|
||||
'<?php
|
||||
/**
|
||||
* @template T as object
|
||||
|
@ -1517,7 +1517,7 @@ class FunctionTemplateTest extends TestCase
|
||||
if (is_array($iterable)) {}
|
||||
}'
|
||||
],
|
||||
'SKIPPED-transformNestedTemplateWherePossible' => [
|
||||
'transformNestedTemplateWherePossible' => [
|
||||
'<?php
|
||||
/**
|
||||
* @template TValue
|
||||
|
@ -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) {}
|
||||
|
Loading…
Reference in New Issue
Block a user