Skip to content

Can not find a matching value for an argument #770

@iuriag

Description

@iuriag

When I writing a step that have a default parameter, this exeception is raised:
"Can not find a matching value for an argument $encaminhamento em method FeatureContext::lancoUmaFichaDeAtendimentoComDados()"

Example:

/**
   * Finalidade: Lançar uma ficha de atendimento no módulo ambulatorial
   * @then lanco uma ficha de atendimento com os dados
   * @then lanco uma ficha de atendimento com os dados e encaminho para :encaminhamento
   * @param TableNode $oDados
   */
  public function lancoUmaFichaDeAtendimentoComDados($encaminhamento = '', TableNode $oDados) {

    /**
     * Lots of assertions
     */

  }

Here is a .feature example file

# language: pt
Funcionalidade: Testar o teste

@javascript
  Cenario: incluir o atendimento e repassar
  Dado estou em "/"
  Entao lanco uma ficha de atendimento com os dados
  |cgs|nome          |profissional|especialidade|ambulatorio|
  |6  |ALBERT EINSTEN|            |             |10         |
  Entao lanco uma ficha de atendimento com os dados  encaminho para "Consulta Medica"
  |cgs|nome       |profissional|especialidade|ambulatorio|
  | 4 |DONALD DUCK|            |225125       |10         |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions