/** * Test from method. * @covers Rentalhost\VanillaData\Data::from */ public function testFrom() { $data = new Data(); static::assertSame($data, Data::from($data)); static::assertNotSame(new Data(['key' => 'value']), Data::from(['key' => 'value'])); }