Coder Social home page Coder Social logo

100% test coverage about dom HOT 4 CLOSED

phpgt avatar phpgt commented on August 11, 2024
100% test coverage

from dom.

Comments (4)

aguimaraes avatar aguimaraes commented on August 11, 2024

PHPUnit can't find any class belonging to the phpgt\dom namespace when I try to run your tests.

The path is OK in composer.json, can you help me with the possible causes of this?

alvaro@alvaro-pc:~/Documents/dom$ phpunit
PHP Fatal error:  Trait 'phpgt\dom\LiveProperty' not found in /home/alvaro/Documents/dom/test/ExampleLiveProperty.php on line 5

from dom.

aguimaraes avatar aguimaraes commented on August 11, 2024

PHPUnit 5.3.2
PHP 7.0.4

from dom.

g105b avatar g105b commented on August 11, 2024

Thanks for the report @aguimaraes , I've created a separate issue for this at #30. Please run the PHP Unit supplied by Composer (vendor/bin/phpunit). I will look into what is causing a standalone version of PHPUnit to fail.

git clone https://github.com/phpgt/dom
cd dom
composer install
vendor/bin/phpunit

from dom.

aguimaraes avatar aguimaraes commented on August 11, 2024

Works using the vendor dir binary.
Must be the version difference.

alvaro@alvaro-pc:~/Documents/dom$ phpunit --version
PHPUnit 5.3.2 by Sebastian Bergmann and contributors.

alvaro@alvaro-pc:~/Documents/dom$ vendor/bin/phpunit --version
PHPUnit 5.1.6 by Sebastian Bergmann and contributors.

Thank you.

from dom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.