예제 #1
0
 /**
  * Test Jasny\DotKey::on
  */
 public function testOn()
 {
     $foo = (object) ['foo' => 'bar'];
     $this->dotkey = DotKey::on($foo);
     $this->assertSame($foo, $this->getProperty('item'));
 }
예제 #2
0
 /**
  * Test Jasny\DotKey::on
  */
 public function testOn()
 {
     $foo = ['foo' => 'bar'];
     $this->dotkey = DotKey::on($foo);
     $this->assertEquals($foo, $this->getProperty('item'));
 }