Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument strings with leading 0s are stripped #1407

Open
NeilJ247 opened this issue Aug 19, 2022 · 0 comments
Open

Argument strings with leading 0s are stripped #1407

NeilJ247 opened this issue Aug 19, 2022 · 0 comments

Comments

@NeilJ247
Copy link

Description

Behat version is v3.11.0

I have a custom step which checks a phone number is saved correctly to the database.

Definition

And my contact number is "02087599036"

Code

  /**
   * @Then my contact number is :phone
   */
  public function myContactNumberIs(string $phone)
  {

Expected

I expect that $phone should contain "02087599036"

Actual

$phone is stripped of the leading 0 e.g. "2087599036"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant