advice = new Advice(); } public function testAdviceDefinitionIsValid() { $definition = Advice::$definition; $this->assertInternalType('array', $definition); foreach (self::ADVICE_PROPERTIES as $property) { $this->assertArrayHasKey($property, $definition); } $fieldsProperty = $definition['fields']; foreach (self::ADVICE_FIELDS as $field) { $this->assertArrayHasKey($field, $fieldsProperty); } } }