visit( ['type' => 'field', 'value' => 'foo'], 'testing', 'foo' ); $this->assertContains('assertContains('$value = isset($value->{\'foo\'}) ? $value->{\'foo\'} : null;', $source); $this->assertContains('$value = isset($value[\'foo\']) ? $value[\'foo\'] : null;', $source); } }