public function testGet() { // Arrange $a = ['foo' => ['bar' => 'ter']]; // Act $x = __::get($a, 'foo.bar'); // Assert $this->assertEquals('ter', $x); }
public function testGet() { $array = ['foo' => ['bar' => 'ololo']]; $result = __::get($array, 'foo.bar'); $this->assertEquals('ololo', $result); }