Skip to content

Commit

Permalink
Mark failing tests incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 9, 2016
1 parent 09b281d commit e2b7936
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ScopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,19 @@ public function testDoWhileVar()

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
Expand Down

0 comments on commit e2b7936

Please sign in to comment.