Add a basic "harbormaster.step.edit" API method
[phabricator/blender.git] / src / view / __tests__ / PhabricatorAphrontViewTestCase.php
blobd0cc0d40f925f54fa8bc6ada5fce8754622770f1
1 <?php
3 final class PhabricatorAphrontViewTestCase extends PhabricatorTestCase {
5 public function testHasChildren() {
6 $view = new AphrontNullView();
7 $this->assertFalse($view->hasChildren());
9 $values = array(
10 null,
11 '',
12 array(),
13 array(null, ''),
16 foreach ($values as $value) {
17 $view->appendChild($value);
18 $this->assertFalse($view->hasChildren());
21 $view->appendChild('!');
22 $this->assertTrue($view->hasChildren());