1
0
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:
Matt Brown 2016-12-09 13:26:40 -05:00
parent 5077424844
commit e8c91bc748

View File

@ -330,6 +330,19 @@ class ScopeTest extends PHPUnit_Framework_TestCase
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
if (!($row = (rand(0, 10) ? [5] : null))) {
// do nothing