Skip to content

Commit

Permalink
Add (skipped) test for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Nov 21, 2016
1 parent 05a004c commit ded2cb5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1669,4 +1669,18 @@ public function bar() {
$context = new Context('somefile.php');
$file_checker->check();
}

public function testIfNotEqualFalse()
{
$this->markTestIncomplete('This currently fails');
$stmts = self::$parser->parse('<?php
if (($row = rand(0,10) ? [] : false) !== false) {
$row[0] = "good";
echo $row[0];
}
');

$file_checker = new FileChecker('somefile.php', $stmts);
$file_checker->check();
}
}

0 comments on commit ded2cb5

Please sign in to comment.