/** * @covers RecordsMan\Record::_fromArray */ public function test_fromArray() { /** @var Item $item */ $item = Item::_fromArray(['id' => 20, 'title' => 'test']); $this->assertInstanceOf('\\Test\\Item', $item); $this->assertEquals(20, $item->id); $this->assertEquals('test', $item->title); }