$test_count++;
}
- $this->assertEqual(
- true,
+ $this->assertTrue(
($test_count > 0),
pht('Expected to find some .lint-test tests in directory %s!', $root));
}
// affected path because we don't care about the order in which the
// changes appear.
foreach ($raw_changes as $change) {
- $this->assertEqual(
- true,
+ $this->assertTrue(
empty($changes[$change->getCurrentPath()]),
"Unique Path: ".$change->getCurrentPath());
$changes[$change->getCurrentPath()] = $change;
case '228d7be4840313ed805c25c15bba0f7b188af3e6':
// "Add a text file."
// This commit is never reached because we skip the 0th commit junk.
- $this->assertEqual(true, "This is never reached.");
+ $this->assertTrue(true, "This is never reached.");
break;
default:
throw new Exception(
$this->assertEqual(count($changes), $expect_two ? 2 : 1);
$change = reset($changes);
- $this->assertEqual(true, $change !== null);
+ $this->assertTrue($change !== null);
$hunks = $change->getHunks();
$this->assertEqual(1, count($hunks));
$this->assertEqual(
$change->getCurrentPath(),
$target->getOldPath());
- $this->assertEqual(
- true,
+ $this->assertTrue(
in_array($target->getCurrentPath(), $change->getAwayPaths()));
break;
case 'git-merge-header.gitdiff':
} catch (Exception $ex) {
$caught = $ex;
}
- $this->assertEqual(
- true,
+ $this->assertTrue(
($caught instanceof Exception),
"Ambiguous: {$input}");
}
// OK
}
- $this->assertEqual(true, true);
+ $this->assertTrue(true);
}
public function testInvalidXmlInputFailure() {
// OK
}
- $this->assertEqual(true, true);
+ $this->assertTrue(true);
}
}