/** * @covers rvilbrandt\gamebook\Model\Gamebook\Conditions::setFromArray */ public function testSetFromArray() { $this->object->setFromObject(json_decode(file_get_contents(__DIR__ . "/../../../data/conditions_valid.json"))); $this->assertEquals("Hodor", $this->object->states->eq['name']); $this->assertEquals(1, $this->object->states->gt['test']); $this->assertContains("key", $this->object->inventory->has); }