@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3/**
4 * Trivial example test case.
5 */
6final 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}