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