PHPUnit_Framework_TestCase not found The Next CEO of Stack Overflow“Class doesn't exist” error on Marketplace Sumission but class is thereMagento 2: Can't install or uninstall plugins in magento 2Magento 2 run setup:di:compile command on a shared hosting with limited memory_limit (max 512M)Magento 2.3 fresh installation issue : tinymce.js not loadMagento 2.3.0 logo not uploaded due to deferred.pipe() console errorcomposer connection refusedM 2.3.0: Can't Access Design Configuration - Global View page. Getting Error “Uncaught ReferenceError: Base64 is not defined.”POST http://example.com/setup/index.php/dependency-check/component-dependency 404 (Not Found)Magento 2 shell shows production mode, but still in developer modeCSS and JS Files Not Found Magento

Spaces in which all closed sets are regular closed

It is correct to match light sources with the same color temperature?

What does "shotgun unity" refer to here in this sentence?

Is it OK to decorate a log book cover?

Does Germany produce more waste than the US?

How do you define an element with an ID attribute using LWC?

What CSS properties can the br tag have?

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

What would be the main consequences for a country leaving the WTO?

Inductor and Capacitor in Parallel

Is fine stranded wire ok for main supply line?

What was Carter Burke's job for "the company" in Aliens?

Is there a way to save my career from absolute disaster?

Is it okay to majorly distort historical facts while writing a fiction story?

TikZ: How to fill area with a special pattern?

Ising model simulation

Reshaping json / reparing json inside shell script (remove trailing comma)

Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"

Where do students learn to solve polynomial equations these days?

Why did early computer designers eschew integers?

Defamation due to breach of confidentiality

how one can write a nice vector parser, something that does pgfvecparseA=B-C; D=E x F;

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Raspberry pi 3 B with Ubuntu 18.04 server arm64: what chip



PHPUnit_Framework_TestCase not found



The Next CEO of Stack Overflow“Class doesn't exist” error on Marketplace Sumission but class is thereMagento 2: Can't install or uninstall plugins in magento 2Magento 2 run setup:di:compile command on a shared hosting with limited memory_limit (max 512M)Magento 2.3 fresh installation issue : tinymce.js not loadMagento 2.3.0 logo not uploaded due to deferred.pipe() console errorcomposer connection refusedM 2.3.0: Can't Access Design Configuration - Global View page. Getting Error “Uncaught ReferenceError: Base64 is not defined.”POST http://example.com/setup/index.php/dependency-check/component-dependency 404 (Not Found)Magento 2 shell shows production mode, but still in developer modeCSS and JS Files Not Found Magento










2















just made upgrade to 2.3.0 and while compilation get this error:



server@server:~/web/server.dev.company.com/public_html$ /usr/bin/php7.1 bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 68.0 MiBPHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/server/web/server.dev.company.com/public_html/app/code/WebShopApps/MatrixRate/test/Unit/Block/Adminhtml/Form/Field/ImportTest.php on line 36


I try to remove this module, but it not solve this trouble.










share|improve this question

















  • 1





    PHP version 7.1.26; composer.json -> "phpunit/phpunit": "~6.2.0",

    – Kirill Dudka
    Feb 21 at 10:44
















2















just made upgrade to 2.3.0 and while compilation get this error:



server@server:~/web/server.dev.company.com/public_html$ /usr/bin/php7.1 bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 68.0 MiBPHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/server/web/server.dev.company.com/public_html/app/code/WebShopApps/MatrixRate/test/Unit/Block/Adminhtml/Form/Field/ImportTest.php on line 36


I try to remove this module, but it not solve this trouble.










share|improve this question

















  • 1





    PHP version 7.1.26; composer.json -> "phpunit/phpunit": "~6.2.0",

    – Kirill Dudka
    Feb 21 at 10:44














2












2








2








just made upgrade to 2.3.0 and while compilation get this error:



server@server:~/web/server.dev.company.com/public_html$ /usr/bin/php7.1 bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 68.0 MiBPHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/server/web/server.dev.company.com/public_html/app/code/WebShopApps/MatrixRate/test/Unit/Block/Adminhtml/Form/Field/ImportTest.php on line 36


I try to remove this module, but it not solve this trouble.










share|improve this question














just made upgrade to 2.3.0 and while compilation get this error:



server@server:~/web/server.dev.company.com/public_html$ /usr/bin/php7.1 bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 68.0 MiBPHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/server/web/server.dev.company.com/public_html/app/code/WebShopApps/MatrixRate/test/Unit/Block/Adminhtml/Form/Field/ImportTest.php on line 36


I try to remove this module, but it not solve this trouble.







magento2 magento2.2 magento2.3 magento2.3.0






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 at 10:43









Kirill DudkaKirill Dudka

706




706







  • 1





    PHP version 7.1.26; composer.json -> "phpunit/phpunit": "~6.2.0",

    – Kirill Dudka
    Feb 21 at 10:44













  • 1





    PHP version 7.1.26; composer.json -> "phpunit/phpunit": "~6.2.0",

    – Kirill Dudka
    Feb 21 at 10:44








1




1





PHP version 7.1.26; composer.json -> "phpunit/phpunit": "~6.2.0",

– Kirill Dudka
Feb 21 at 10:44






PHP version 7.1.26; composer.json -> "phpunit/phpunit": "~6.2.0",

– Kirill Dudka
Feb 21 at 10:44











2 Answers
2






active

oldest

votes


















2














If you're using PHPUnit version 6, please replace class 'PHPUnit_Framework_TestCase' in your test file to 'PHPUnitFrameworkTestCase'. So it'd look like this:



class YourTest extends PHPUnitFrameworkTestCase 
...



Reference : https://github.com/magento/magento2/issues/11114






share|improve this answer























  • some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

    – medmek
    2 days ago



















0














For this do some changes into file. Just change this code



class MatrixrateTest extends PHPUnit_Framework_TestCase


to



class MatrixrateTest extends PHPUnitFrameworkTestCase


into below files.



 Matrixrate/GridTest.php
Form/Field/ExportTest.php
Form/Field/ImportTest.php
Config/Backend/MatrixrateTest.php
Config/Source/MatrixrateTest.php


Than run compilation command your problem is sorted






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2fmagento.stackexchange.com%2fquestions%2f262824%2fphpunit-framework-testcase-not-found%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    If you're using PHPUnit version 6, please replace class 'PHPUnit_Framework_TestCase' in your test file to 'PHPUnitFrameworkTestCase'. So it'd look like this:



    class YourTest extends PHPUnitFrameworkTestCase 
    ...



    Reference : https://github.com/magento/magento2/issues/11114






    share|improve this answer























    • some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

      – medmek
      2 days ago
















    2














    If you're using PHPUnit version 6, please replace class 'PHPUnit_Framework_TestCase' in your test file to 'PHPUnitFrameworkTestCase'. So it'd look like this:



    class YourTest extends PHPUnitFrameworkTestCase 
    ...



    Reference : https://github.com/magento/magento2/issues/11114






    share|improve this answer























    • some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

      – medmek
      2 days ago














    2












    2








    2







    If you're using PHPUnit version 6, please replace class 'PHPUnit_Framework_TestCase' in your test file to 'PHPUnitFrameworkTestCase'. So it'd look like this:



    class YourTest extends PHPUnitFrameworkTestCase 
    ...



    Reference : https://github.com/magento/magento2/issues/11114






    share|improve this answer













    If you're using PHPUnit version 6, please replace class 'PHPUnit_Framework_TestCase' in your test file to 'PHPUnitFrameworkTestCase'. So it'd look like this:



    class YourTest extends PHPUnitFrameworkTestCase 
    ...



    Reference : https://github.com/magento/magento2/issues/11114







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 21 at 11:17









    Amit NaraniwalAmit Naraniwal

    1




    1












    • some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

      – medmek
      2 days ago


















    • some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

      – medmek
      2 days ago

















    some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

    – medmek
    2 days ago






    some vendor modules (M2.3.1) use the old class PHPUnit_Framework_TestCase

    – medmek
    2 days ago














    0














    For this do some changes into file. Just change this code



    class MatrixrateTest extends PHPUnit_Framework_TestCase


    to



    class MatrixrateTest extends PHPUnitFrameworkTestCase


    into below files.



     Matrixrate/GridTest.php
    Form/Field/ExportTest.php
    Form/Field/ImportTest.php
    Config/Backend/MatrixrateTest.php
    Config/Source/MatrixrateTest.php


    Than run compilation command your problem is sorted






    share|improve this answer



























      0














      For this do some changes into file. Just change this code



      class MatrixrateTest extends PHPUnit_Framework_TestCase


      to



      class MatrixrateTest extends PHPUnitFrameworkTestCase


      into below files.



       Matrixrate/GridTest.php
      Form/Field/ExportTest.php
      Form/Field/ImportTest.php
      Config/Backend/MatrixrateTest.php
      Config/Source/MatrixrateTest.php


      Than run compilation command your problem is sorted






      share|improve this answer

























        0












        0








        0







        For this do some changes into file. Just change this code



        class MatrixrateTest extends PHPUnit_Framework_TestCase


        to



        class MatrixrateTest extends PHPUnitFrameworkTestCase


        into below files.



         Matrixrate/GridTest.php
        Form/Field/ExportTest.php
        Form/Field/ImportTest.php
        Config/Backend/MatrixrateTest.php
        Config/Source/MatrixrateTest.php


        Than run compilation command your problem is sorted






        share|improve this answer













        For this do some changes into file. Just change this code



        class MatrixrateTest extends PHPUnit_Framework_TestCase


        to



        class MatrixrateTest extends PHPUnitFrameworkTestCase


        into below files.



         Matrixrate/GridTest.php
        Form/Field/ExportTest.php
        Form/Field/ImportTest.php
        Config/Backend/MatrixrateTest.php
        Config/Source/MatrixrateTest.php


        Than run compilation command your problem is sorted







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        NikulNikul

        7011019




        7011019



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • 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%2fmagento.stackexchange.com%2fquestions%2f262824%2fphpunit-framework-testcase-not-found%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

            Sum ergo cogito? 1 nng

            三茅街道4182Guuntc Dn precexpngmageondP