Comments (11)
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.
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.
Hi. I will review this tomorrow:)
from zubr.
Awesome!
from zubr.
Nice work! Adding stubs as *.TODO files are quite clever.
LGTM 👍
from zubr.
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.
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.
Do it ;)
from zubr.
Awesome. @ddziaduch..? If anything can you take care of tests, and I'll do functions and different kinds of documentation?
from zubr.
This is awesome! All seems fine for me :). We can automate tests in new issue
from zubr.
Merged.
I'll keep this open until we figure out tests (which might mean leaving as is, not sure).
from zubr.
Related Issues (20)
- Double-check Composer file
- `array_column` PSR2 errors
- Doc block guidelines HOT 7
- Slack
- Zubr isn't bundled with PHP HOT 4
- Implement validator tool HOT 2
- xxxx
- Add test for array_count_values()
- array_change_key_case() has wrong default value
- array_change_key_case() has wrong doc format
- array_chunk() has wrong doc format
- array_chunk() has wrong doc format HOT 1
- array_combine() has wrong doc format
- Add test for array_fill_keys()
- Add test for array_fill()
- Add test for array_flip()
- Add test for array_keys()
- Remove dist folder? HOT 6
- Add a performance readme entry HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zubr.