コード例 #1
0
ファイル: SupportArrTest.php プロジェクト: stillat/collection
 public function testHas()
 {
     $array = ['products' => ['desk' => ['price' => 100]]];
     $this->assertTrue(Arr::has($array, 'products.desk'));
     $this->assertTrue(Arr::has($array, 'products.desk.price'));
     $this->assertFalse(Arr::has($array, 'products.foo'));
     $this->assertFalse(Arr::has($array, 'products.desk.foo'));
 }