Giter Club home page Giter Club logo

php_koans's People

Contributors

akoebbe avatar asieralba10 avatar demipel8 avatar ericjgruber avatar ericpoe avatar johnkary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php_koans's Issues

Automagically include the latest version of phpunit.phar in the repo

Rather than manually checking in the latest phpunit.phar file and rename it to contemplate_koans, we should make it an automatic download/checksum/chmod/rename via CI (github actions) whenever new code is pushed in to php_koans. This will also protect against a malicious version of phpunit sneaking via a contributor. I haven't messed with Github actions to know if this is possible or straightforward.

Migrate the PHPUnit custom printers to the event system

Because PHPUnit 10 did away with the printerClass config setting, the band-new-developer friendly output no longer works. There is a new event base architecture that needs to be used, either directly or some existing adapter plugin. I would rather not use plugin/library for several reasons, the primary being I don't want to add to the installation process for new users.

There are a few projects that have accomplished migrating to the event system and it's worth looking at how they did it and follow their pattern. Examples are czim/phpunit-printer and paratest. The latter looks more straight forward, but there might something I'm missing.

So we need to migrate https://github.com/akoebbe/php_koans/blob/master/KoansLib/KoanPrinter.php to work with phpunit 10+

Unable to run koan using contemplate koans after update to PHP8.1

Due to the latest updates to PHP 8.1, running the koan using php contemplate_koans is not working anymore, see picture below:
Screenshot 2022-11-30 at 17 47 20

We can improve the way koans are executed and we can simplify the project by avoiding running the koans using contemplate and run them using phpunit.

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.