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
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
240
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
110
Faster Mobile Websites
deanohume
310
31k
Building the Perfect Custom Keyboard
takai
2
690
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.1k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Deep Space Network (abreviated)
tonyrice
0
64
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