Changeset View
Changeset View
Standalone View
Standalone View
src/utils/__tests__/PhutilUtilsTestCase.php
Context not available. | |||||
public function testHeadLast() { | public function testHeadLast() { | ||||
$this->assertEqual( | $this->assertEqual( | ||||
'a', | 'a', | ||||
head(explode('.', 'a.b'))); | head(@explode('.', 'a.b'))); | ||||
$this->assertEqual( | $this->assertEqual( | ||||
'b', | 'b', | ||||
last(explode('.', 'a.b'))); | last(@explode('.', 'a.b'))); | ||||
} | } | ||||
public function testHeadKeyLastKey() { | public function testHeadKeyLastKey() { | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0