コード例 #1
0
ファイル: ArrayUtilTest.php プロジェクト: mystlabs/mistyutils
 public function testGetAndRemove_testNotFound()
 {
     $input = array('a' => 'A', 'b' => 'B', 'c' => 'C');
     $value = ArrayUtil::getAndRemove($input, 'd', 'notfound');
     $this->assertEquals('notfound', $value);
     $this->assertEquals(3, count($input));
 }