[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/testing/__tests__/ -> PhabricatorTrivialTestCase.php (source)

   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    public 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  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1