Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Fixtures mit Alice und Faker - Lightning Talk
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Marcel Führer
August 24, 2016
0
86
Fixtures mit Alice und Faker - Lightning Talk
Marcel Führer
August 24, 2016
Tweet
Share
More Decks by Marcel Führer
See All by Marcel Führer
Akzeptanztests mit Codeception
mfuehrer82
0
570
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.1k
How to Talk to Developers About Accessibility
jct
2
140
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
86
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
55
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
70
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
240
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
57
Marketing to machines
jonoalderson
1
4.6k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Transcript
PHPUSERGROUP DRESDEN FIXTURES MIT ALICE UND FAKER 1
FIXTURES MIT ALICE UND FAKER AGENDA ▸ WARUM FIXTURES? ▸
FAKER ▸ ALICE 2
WARUM FIXTURES ▸ Passende Testdaten ▸ Realitätsnah und zufällig verteilt
3 FIXTURES MIT ALICE UND FAKER
VOR FAKER ▸ Von „Klara Fall“ bis „Rainer Zufall“ 4
FIXTURES MIT ALICE UND FAKER
FAKER ▸ PHP Bibliothek welche Testdaten generiert ▸ https://github.com/fzaninotto/Faker ▸
Länderspezifische Testdaten ▸ Ohne Ende Formatters 5 FIXTURES MIT ALICE UND FAKER
FAKER - FORMATTERS ▸ Methoden zur Erzeugung von Informationen 6
FIXTURES MIT ALICE UND FAKER
FAKER - PROVIDER ▸ Klassen zur Kategorisierung der Formatter ▸
eigene Provider sind möglich 7 FIXTURES MIT ALICE UND FAKER
FAKER - GENERATOR ▸ Klasse zur Registrierung der Provider ▸
unique() - eindeutig ▸ optional() - optional ▸ seed(1) - immer gleiche Werte ▸ Länderspezifisch 8 FIXTURES MIT ALICE UND FAKER
ALICE ▸ PHP Bibliothek ▸ https://github.com/nelmio/alice ▸ Zur Beschreibung von
Entitäten mittels yaml ▸ Interpretiert Faker Formatter ▸ Persistieren mittels ORM 9 FIXTURES MIT ALICE UND FAKER
ALICE - SIMPLE 10 FIXTURES MIT ALICE UND FAKER
ALICE - FAKER 11 FIXTURES MIT ALICE UND FAKER