Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31227

Deprecation warning in AllureFormatter on PHP7.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta3, 2.5.7
    • Fix Version/s: 2.5.9, 3.0.0-beta5
    • Component/s: QA
    • Labels:

      Description

      Running Behat on PHP7.3 ends with:

      PHP Deprecated:  stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/allure-behat/src/Allure/Behat/Formatter/AllureFormatter.php on line 423
      PHP Stack trace:
      PHP   1. {main}() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/bin/behat:0
      PHP   2. Behat\Testwork\Cli\Application->run() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/bin/behat:34
      PHP   3. Behat\Testwork\Cli\Application->doRun() /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/console/Application.php:148
      PHP   4. Behat\Testwork\Cli\Application->doRun() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Cli/Application.php:124
      PHP   5. Behat\Testwork\Cli\Application->doRunCommand() /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/console/Application.php:272
      PHP   6. Behat\Testwork\Cli\Command->run() /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/console/Application.php:1011
      PHP   7. Behat\Testwork\Cli\Command->execute() /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/console/Command/Command.php:255
      PHP   8. Behat\Testwork\Tester\Cli\ExerciseController->execute() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Cli/Command.php:63
      PHP   9. Behat\Testwork\Tester\Cli\ExerciseController->testSpecifications() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php:108
      PHP  10. Behat\Testwork\Ordering\OrderedExercise->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Tester/Cli/ExerciseController.php:149
      PHP  11. Behat\Testwork\EventDispatcher\Tester\EventDispatchingExercise->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Ordering/OrderedExercise.php:80
      PHP  12. Behat\Testwork\Tester\Runtime\RuntimeExercise->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingExercise.php:70
      PHP  13. Behat\Testwork\EventDispatcher\Tester\EventDispatchingSuiteTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeExercise.php:71
      PHP  14. Behat\Testwork\Hook\Tester\HookableSuiteTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/Tester/EventDispatchingSuiteTester.php:72
      PHP  15. Behat\Testwork\Tester\Runtime\RuntimeSuiteTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Hook/Tester/HookableSuiteTester.php:73
      PHP  16. Behat\Behat\EventDispatcher\Tester\EventDispatchingFeatureTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/Tester/Runtime/RuntimeSuiteTester.php:63
      PHP  17. Behat\Behat\Hook\Tester\HookableFeatureTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/EventDispatchingFeatureTester.php:71
      PHP  18. Behat\Behat\Tester\Runtime\RuntimeFeatureTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Behat/Hook/Tester/HookableFeatureTester.php:72
      PHP  19. Behat\Behat\Tester\Runtime\IsolatingScenarioTester->test() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/RuntimeFeatureTester.php:84
      PHP  20. Behat\Behat\EventDispatcher\Tester\EventDispatchingScenarioTester->setUp() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Behat/Tester/Runtime/IsolatingScenarioTester.php:67
      PHP  21. Behat\Testwork\EventDispatcher\TestworkEventDispatcher->dispatch() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Tester/EventDispatchingScenarioTester.php:88
      PHP  22. Behat\Testwork\EventDispatcher\TestworkEventDispatcher->doDispatch() /Users/mareknocon/Desktop/Sites/v3/vendor/behat/behat/src/Behat/Testwork/EventDispatcher/TestworkEventDispatcher.php:39
      PHP  23. Allure\Behat\Formatter\AllureFormatter->onBeforeScenarioTested() /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/event-dispatcher/EventDispatcher.php:264
      PHP  24. Allure\Behat\Formatter\AllureFormatter->parseScenarioAnnotations() /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/allure-behat/src/Allure/Behat/Formatter/AllureFormatter.php:265
      PHP  25. stripos() /Users/mareknocon/Desktop/Sites/v3/vendor/ezsystems/allure-behat/src/Allure/Behat/Formatter/AllureFormatter.php:423
      

      Steps:
      0. Use PHP 7.3
      1. Run bin/behat --profile=adminui --dry-run

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marek.nocon@ez.no Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: