Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/testing/__tests__/PhabricatorTrivialTestCase.php
12241 views
1
<?php
2
3
/**
4
* Trivial example test case.
5
*/
6
final class PhabricatorTrivialTestCase extends PhabricatorTestCase {
7
8
// NOTE: Update developer/unit_tests.diviner when updating this class!
9
10
private $two;
11
12
protected function willRunOneTest($test_name) {
13
// You can execute setup steps which will run before each test in this
14
// method.
15
$this->two = 2;
16
}
17
18
public function testAllIsRightWithTheWorld() {
19
$this->assertEqual(4, $this->two + $this->two, '2 + 2 = 4');
20
}
21
22
}
23
24