GithubHelp home page GithubHelp logo

Comments (11)

nkkollaw avatar nkkollaw commented on July 20, 2024

I'm implementing a little utility to extract functions from PHPStorm stubs, and tests from the Locutus project.

Here is the branch: https://github.com/nkkollaw/zubr/tree/20170813-stubs

My goal is to have function stubs in separate PHP files that we can just add to, and working tests.

I'll report back when I'm done, hopefully between tomorrow or the day after tomorrow.

from zubr.

nkkollaw avatar nkkollaw commented on July 20, 2024

I've managed to finish up a rather primitive script that adds stubs for src files as well as tests, and copies tests from Locutus so that one can copy them and reimplement them in PHP without starting from scratch.

The branch is this one: https://github.com/nkkollaw/zubr/tree/20170813-stubs. You can see generated source files here: https://github.com/nkkollaw/zubr/tree/20170813-stubs/src, and generated test stubs here: https://github.com/nkkollaw/zubr/tree/20170813-stubs/tests.

All files have the extension .TODO. I think we can use them as a start, and when one is done with rename .php.TODO into .php.

@radmen + @ddziaduch, what do you think? I can merge the utility as well as the generated files, or we can of course update the script to change what gets generated. Or, we don't use any of it.

Let me know!

from zubr.

ddziaduch avatar ddziaduch commented on July 20, 2024

Hi. I will review this tomorrow:)

from zubr.

nkkollaw avatar nkkollaw commented on July 20, 2024

Awesome!

from zubr.

radmen avatar radmen commented on July 20, 2024

Nice work! Adding stubs as *.TODO files are quite clever.

LGTM 👍

from zubr.

nkkollaw avatar nkkollaw commented on July 20, 2024

Thanks.

I hope we can save some time, I think we can automate writing tests completely, but I didn't have a lot more time to look into that.

from zubr.

nkkollaw avatar nkkollaw commented on July 20, 2024

Hey guys (@radmen @ddziaduch), should I go ahead with this?

I'm not happy about not automating tests, but we can always improve the thing later, since generated files are easily distinguishable thanks to the .TODO extension.

from zubr.

radmen avatar radmen commented on July 20, 2024

Do it ;)

from zubr.

nkkollaw avatar nkkollaw commented on July 20, 2024

Awesome. @ddziaduch..? If anything can you take care of tests, and I'll do functions and different kinds of documentation?

from zubr.

ddziaduch avatar ddziaduch commented on July 20, 2024

This is awesome! All seems fine for me :). We can automate tests in new issue

from zubr.

nkkollaw avatar nkkollaw commented on July 20, 2024

Merged.

I'll keep this open until we figure out tests (which might mean leaving as is, not sure).

from zubr.

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.