/** * @param int $type * @param string $expectedTypeName * @throws \Exception */ protected function checkMapping($type, $expectedTypeName) { $typeName = $this->types->getTypeName($type); assertThat($typeName, is($expectedTypeName)); assertThat($this->types->getTypeByName($typeName), is($type)); }
public function __construct() { parent::__construct("license decision type"); $this->map = array(self::USER => "User decision", self::BULK => "Bulk", self::AGENT => "User confirmed agent finding"); }