Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13997387
D8461.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D8461.diff
View Options
diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php
--- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php
+++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php
@@ -19,8 +19,7 @@
$test_count++;
}
- $this->assertEqual(
- true,
+ $this->assertTrue(
($test_count > 0),
pht('Expected to find some .lint-test tests in directory %s!', $root));
}
diff --git a/src/parser/__tests__/ArcanistBundleTestCase.php b/src/parser/__tests__/ArcanistBundleTestCase.php
--- a/src/parser/__tests__/ArcanistBundleTestCase.php
+++ b/src/parser/__tests__/ArcanistBundleTestCase.php
@@ -146,8 +146,7 @@
// 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;
@@ -568,7 +567,7 @@
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(
diff --git a/src/parser/__tests__/ArcanistDiffParserTestCase.php b/src/parser/__tests__/ArcanistDiffParserTestCase.php
--- a/src/parser/__tests__/ArcanistDiffParserTestCase.php
+++ b/src/parser/__tests__/ArcanistDiffParserTestCase.php
@@ -37,7 +37,7 @@
$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));
@@ -327,8 +327,7 @@
$this->assertEqual(
$change->getCurrentPath(),
$target->getOldPath());
- $this->assertEqual(
- true,
+ $this->assertTrue(
in_array($target->getCurrentPath(), $change->getAwayPaths()));
break;
case 'git-merge-header.gitdiff':
@@ -653,8 +652,7 @@
} catch (Exception $ex) {
$caught = $ex;
}
- $this->assertEqual(
- true,
+ $this->assertTrue(
($caught instanceof Exception),
"Ambiguous: {$input}");
}
diff --git a/src/unit/engine/__tests__/XUnitTestResultParserTestCase.php b/src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
--- a/src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
+++ b/src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
@@ -38,7 +38,7 @@
// OK
}
- $this->assertEqual(true, true);
+ $this->assertTrue(true);
}
public function testInvalidXmlInputFailure() {
@@ -53,7 +53,7 @@
// OK
}
- $this->assertEqual(true, true);
+ $this->assertTrue(true);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 25, 4:08 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6711876
Default Alt Text
D8461.diff (3 KB)
Attached To
Mode
D8461: Utilize `assertFalse` and `assertTrue` methods.
Attached
Detach File
Event Timeline
Log In to Comment