Changeset View
Changeset View
Standalone View
Standalone View
src/utils/__tests__/PhutilUtilsTestCase.php
Show First 20 Lines • Show All 664 Lines • ▼ Show 20 Lines | $this->assertEqual( | ||||
" 'baz' => array(),", | " 'baz' => array(),", | ||||
' ),', | ' ),', | ||||
' ),', | ' ),', | ||||
')', | ')', | ||||
)), | )), | ||||
phutil_var_export( | phutil_var_export( | ||||
array('foo' => array('bar' => array('baz' => array()))))); | array('foo' => array('bar' => array('baz' => array()))))); | ||||
// Objects | // NOTE: Object behavior differs across PHP versions. Older versions of | ||||
$this->assertEqual( | // PHP export objects as "stdClass::__set_state(array())". Newer versions | ||||
"stdClass::__set_state(array(\n))", | // of PHP (7.3+) export objects as "(object) array()". | ||||
phutil_var_export(new stdClass())); | |||||
$this->assertEqual( | |||||
"PhutilTestPhobject::__set_state(array(\n))", | |||||
phutil_var_export(new PhutilTestPhobject())); | |||||
} | } | ||||
public function testFnmatch() { | public function testFnmatch() { | ||||
$cases = array( | $cases = array( | ||||
'' => array( | '' => array( | ||||
array(''), | array(''), | ||||
array('.', '/'), | array('.', '/'), | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |