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