er1z / fakemock Goto Github PK
View Code? Open in Web Editor NEWAllows to quickly mock DTOs using annotations
Home Page: https://github.com/er1z/fakemock
License: MIT License
Allows to quickly mock DTOs using annotations
Home Page: https://github.com/er1z/fakemock
License: MIT License
Currently only Assert\Image
is supported — File
is a bit more complicated and thinking of rules specification should be done.
Right now it's a bit complicated to specify locale for generating process — may be annotation-based parameter.
Not a high priority — currently only annotations are supported.
If you specify more than one group and you want to configure a field differently depending on group is being currently processed, it will fail.
I was starting to implement a library to create test fixtures populated with random data, but looking at the Faker documentation I found yours, and it does basically what I need, except that I would like to keep the classes I want to populate unchanged, i.e I would like to not have to annotate them with @FakeMock()
, same thing for their properties. Is there a way to achieve this with fakemock?
I was think about using only the @var
tag and Symfony constraint annotations to determine wether the property should be mocked and how.
Currently, only some of tests are described, need to clarify what are they doing but it's rather a lower priority.
While code is pretty clean, tests are sometimes written lazy — they need to be refactored.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.