mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Mark failing tests incomplete
This commit is contained in:
parent
5077424844
commit
e8c91bc748
@ -330,6 +330,19 @@ class ScopeTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testAssignmentInIf()
|
public function testAssignmentInIf()
|
||||||
{
|
{
|
||||||
|
$stmts = self::$parser->parse('<?php
|
||||||
|
if ($row = (rand(0, 10) ? [5] : null)) {
|
||||||
|
echo $row[0];
|
||||||
|
}
|
||||||
|
');
|
||||||
|
|
||||||
|
$file_checker = new FileChecker('somefile.php', $stmts);
|
||||||
|
$file_checker->check();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function testNegatedAssignmentInIf()
|
||||||
|
{
|
||||||
|
$this->markTestIncomplete('This currently fails');
|
||||||
$stmts = self::$parser->parse('<?php
|
$stmts = self::$parser->parse('<?php
|
||||||
if (!($row = (rand(0, 10) ? [5] : null))) {
|
if (!($row = (rand(0, 10) ? [5] : null))) {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user