box: wercker/php
build:
    # The steps that will be executed on build
    steps:
      # A  custom script step, name value is used in the UI
      # and the code value contains the command that get executed
      - mbrevda/php-lint:
          directory: .
      - script:
          name: install dependencies
          code: composer install --no-interaction
      - script:
          name: echo php information
          code: |
            echo "php version $(php --version) running"
            echo "from location $(which php)"
      - mbrevda/phpcs:
            directory: src/
            standard: PSR2
      - script:
            name: PHPUnit
            code: vendor/bin/phpunit --configuration tests/phpunit.xml

box: wercker/php
build:
    # The steps that will be executed on build
    steps:
      # A  custom script step, name value is used in the UI
      # and the code value contains the command that get executed
      - mbrevda/php-lint:
          directory: .
      - script:
          name: update composer
          code: composer selfupdate
      - script:
          name: install dependencies
          code: composer install --no-interaction
      - script:
          name: echo php information
          code: |
            echo "php version $(php --version) running"
            echo "from location $(which php)"
      - mbrevda/phpcs:
            directory: src/
            standard: PSR2
      - script:
            name: PHPUnit
            code: vendor/bin/phpunit --configuration tests/phpunit.xml

Update composer before running tests so that its psr-4 compatible
Update composer before running tests so that its psr-4 compatible
