Skip to content

Errors in UnitTest #9

@fadoe

Description

@fadoe

You have different errors in your unit test:

  • In your composer.json you expects the php version >=5.3.3, but you use the new notation for arrays "[" and "]". You should write >=5.4 or change the unit test to use the old array() notation.
  • The assert values for expected and actual are switched
  • In Your example json you write "code": "01.02" on line 32, but on line 92 you check for code 02.01

BTW: in a library you shouldn't commit the composer.lock

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions