Can't update phpunit to v7










0















I use macOs Mojave, MAMP (php 7.1.2) and lately I tried phpUnit, currently running v6.1.1.



I think I need to update phpUnit to v7, since I'm using php7.1.2.



I installed phpUnit via composer. Here some details about the current installation:



phpunit --version
PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



which phpunit
/usr/local/bin/phpunit



When I try to update, nothing happens:



composer require --dev phpunit/phpunit ^7



./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files



--version
PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



Still Version 6.1.1



What am I doing wrong?



Best regards
Beat










share|improve this question


























    0















    I use macOs Mojave, MAMP (php 7.1.2) and lately I tried phpUnit, currently running v6.1.1.



    I think I need to update phpUnit to v7, since I'm using php7.1.2.



    I installed phpUnit via composer. Here some details about the current installation:



    phpunit --version
    PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



    which phpunit
    /usr/local/bin/phpunit



    When I try to update, nothing happens:



    composer require --dev phpunit/phpunit ^7



    ./composer.json has been updated
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Nothing to install or update
    Generating autoload files



    --version
    PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



    Still Version 6.1.1



    What am I doing wrong?



    Best regards
    Beat










    share|improve this question
























      0












      0








      0








      I use macOs Mojave, MAMP (php 7.1.2) and lately I tried phpUnit, currently running v6.1.1.



      I think I need to update phpUnit to v7, since I'm using php7.1.2.



      I installed phpUnit via composer. Here some details about the current installation:



      phpunit --version
      PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



      which phpunit
      /usr/local/bin/phpunit



      When I try to update, nothing happens:



      composer require --dev phpunit/phpunit ^7



      ./composer.json has been updated
      Loading composer repositories with package information
      Updating dependencies (including require-dev)
      Nothing to install or update
      Generating autoload files



      --version
      PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



      Still Version 6.1.1



      What am I doing wrong?



      Best regards
      Beat










      share|improve this question














      I use macOs Mojave, MAMP (php 7.1.2) and lately I tried phpUnit, currently running v6.1.1.



      I think I need to update phpUnit to v7, since I'm using php7.1.2.



      I installed phpUnit via composer. Here some details about the current installation:



      phpunit --version
      PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



      which phpunit
      /usr/local/bin/phpunit



      When I try to update, nothing happens:



      composer require --dev phpunit/phpunit ^7



      ./composer.json has been updated
      Loading composer repositories with package information
      Updating dependencies (including require-dev)
      Nothing to install or update
      Generating autoload files



      --version
      PHPUnit 6.1.1 by Sebastian Bergmann and contributors.



      Still Version 6.1.1



      What am I doing wrong?



      Best regards
      Beat







      php phpunit






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 8:30









      B. RentrugB. Rentrug

      266




      266






















          1 Answer
          1






          active

          oldest

          votes


















          0














          When you are running which phpunit /usr/local/bin/phpunit is seems you have PHPUnit installed globally at /usr/local/bin/phpunit.



          Do you have version 7 when running vendor/bin/phpunit --version?



          To use the local version you would need to run vendor/bin/phpunit instead of just phpunit.



          To update PHPUnit globally, see the instructions here: https://phpunit.de/manual/6.5/en/installation.html






          share|improve this answer























          • with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

            – B. Rentrug
            Nov 14 '18 at 9:44











          • That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

            – Elliot Reed
            Nov 14 '18 at 10:04











          • NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

            – Sebastian Bergmann
            Nov 14 '18 at 14:35










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295884%2fcant-update-phpunit-to-v7%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          When you are running which phpunit /usr/local/bin/phpunit is seems you have PHPUnit installed globally at /usr/local/bin/phpunit.



          Do you have version 7 when running vendor/bin/phpunit --version?



          To use the local version you would need to run vendor/bin/phpunit instead of just phpunit.



          To update PHPUnit globally, see the instructions here: https://phpunit.de/manual/6.5/en/installation.html






          share|improve this answer























          • with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

            – B. Rentrug
            Nov 14 '18 at 9:44











          • That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

            – Elliot Reed
            Nov 14 '18 at 10:04











          • NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

            – Sebastian Bergmann
            Nov 14 '18 at 14:35















          0














          When you are running which phpunit /usr/local/bin/phpunit is seems you have PHPUnit installed globally at /usr/local/bin/phpunit.



          Do you have version 7 when running vendor/bin/phpunit --version?



          To use the local version you would need to run vendor/bin/phpunit instead of just phpunit.



          To update PHPUnit globally, see the instructions here: https://phpunit.de/manual/6.5/en/installation.html






          share|improve this answer























          • with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

            – B. Rentrug
            Nov 14 '18 at 9:44











          • That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

            – Elliot Reed
            Nov 14 '18 at 10:04











          • NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

            – Sebastian Bergmann
            Nov 14 '18 at 14:35













          0












          0








          0







          When you are running which phpunit /usr/local/bin/phpunit is seems you have PHPUnit installed globally at /usr/local/bin/phpunit.



          Do you have version 7 when running vendor/bin/phpunit --version?



          To use the local version you would need to run vendor/bin/phpunit instead of just phpunit.



          To update PHPUnit globally, see the instructions here: https://phpunit.de/manual/6.5/en/installation.html






          share|improve this answer













          When you are running which phpunit /usr/local/bin/phpunit is seems you have PHPUnit installed globally at /usr/local/bin/phpunit.



          Do you have version 7 when running vendor/bin/phpunit --version?



          To use the local version you would need to run vendor/bin/phpunit instead of just phpunit.



          To update PHPUnit globally, see the instructions here: https://phpunit.de/manual/6.5/en/installation.html







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 8:34









          Elliot ReedElliot Reed

          4263824




          4263824












          • with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

            – B. Rentrug
            Nov 14 '18 at 9:44











          • That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

            – Elliot Reed
            Nov 14 '18 at 10:04











          • NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

            – Sebastian Bergmann
            Nov 14 '18 at 14:35

















          • with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

            – B. Rentrug
            Nov 14 '18 at 9:44











          • That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

            – Elliot Reed
            Nov 14 '18 at 10:04











          • NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

            – Sebastian Bergmann
            Nov 14 '18 at 14:35
















          with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

          – B. Rentrug
          Nov 14 '18 at 9:44





          with vendor/bin/phpunit --version I get PHPUnit 7.4.3! Nice :D Still I get an error, when I run my testcase: Error: Class 'NumberFormatter' not found. I thought this error is connected to the version of phpunit... But now I think its not ;) Do you have an idea, why I get this error? i think I need the php_intl.dll extensions, I tried to load it in phpunit.xml, but its still not working...

          – B. Rentrug
          Nov 14 '18 at 9:44













          That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

          – Elliot Reed
          Nov 14 '18 at 10:04





          That's probably a different issue - sounds like namespacing (your namespaces should match up with your file paths, and be configured in composer.json). See here for an example: github.com/elliotjreed/php-package-boilerplate

          – Elliot Reed
          Nov 14 '18 at 10:04













          NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

          – Sebastian Bergmann
          Nov 14 '18 at 14:35





          NumberFormatter is a PHP built-in class provided by the intl extension. Does your code use that? Do you have the extension installed?

          – Sebastian Bergmann
          Nov 14 '18 at 14:35

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295884%2fcant-update-phpunit-to-v7%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          政党

          天津地下鉄3号線