Page MenuHomePhorge

PhabricatorAphrontViewTestCase.php
No OneTemporary

PhabricatorAphrontViewTestCase.php

<?php
final class PhabricatorAphrontViewTestCase extends PhabricatorTestCase {
public function testHasChildren() {
$view = new AphrontNullView();
$this->assertFalse($view->hasChildren());
$values = array(
null,
'',
array(),
array(null, ''),
);
foreach ($values as $value) {
$view->appendChild($value);
$this->assertFalse($view->hasChildren());
}
$view->appendChild('!');
$this->assertTrue($view->hasChildren());
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 18:12 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127312
Default Alt Text
PhabricatorAphrontViewTestCase.php (494 B)

Event Timeline