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
Test-driven development with PHPUnit
Search
Oliver Klee
July 15, 2017
Technology
1
470
Test-driven development with PHPUnit
Oliver Klee
July 15, 2017
Tweet
Share
More Decks by Oliver Klee
See All by Oliver Klee
Team-Management-Plattform
oliverklee
0
33
Vertrauen in Teams & Führung
oliverklee
0
170
Software-Qualität von TYPO3-Extensions automatisieren
oliverklee
0
13
Vertrauen in Teams & Führung
oliverklee
0
110
Testing von TYPO3-Extensions
oliverklee
0
29
Software-Qualität von Extensions automatisieren
oliverklee
1
19
Content-Synchronisierung
oliverklee
0
110
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
240
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
150
Other Decks in Technology
See All in Technology
AIエージェント開発における「攻めの品質改善」と「守りの品質保証」 / 2024.04.09 GPU UNITE 新年会 2025
smiyawaki0820
0
410
AIで進化するソフトウェアテスト:mablの最新生成AI機能でQAを加速!
mfunaki
0
120
Creating Awesome Change in SmartNews
martin_lover
1
240
やさしいMCP入門
minorun365
PRO
149
96k
Spring Bootで実装とインフラをこれでもかと分離するための試み
shintanimoto
5
520
NLP2025 参加報告会 / NLP2025
sansan_randd
4
530
Amazon CloudWatch Application Signals ではじめるバーンレートアラーム / Burn rate alarm with Amazon CloudWatch Application Signals
ymotongpoo
5
320
「それはhowなんよ〜」のガイドライン #orestudy
77web
9
2.4k
JPOUG Tech Talk #12 UNDO Tablespace Reintroduction
nori_shinoda
1
120
AWSのマルチアカウント管理 ベストプラクティス最新版 2025 / Multi-Account management on AWS best practice 2025
ohmura
4
210
改めて学ぶ Trait の使い方 / phpcon odawara 2025
meihei3
1
590
Automatically generating types by running tests
sinsoku
1
490
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
430
65k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.1k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
Agile that works and the tools we love
rasmusluckow
328
21k
Gamification - CAS2011
davidbonilla
81
5.2k
How to train your dragon (web standard)
notwaldorf
91
6k
How STYLIGHT went responsive
nonsquared
99
5.5k
For a Future-Friendly Web
brad_frost
176
9.7k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Transcript
Test-driven Development with PHPUnit Oliver Klee, 2017-07 @oliklee
[email protected]
Unit Tests?
Manual testing is cumbersome
Automated testing is fast
Unit tests for the Realty Manager TYPO3 extension
>1600 tests
< 60 seconds
Verify that your code does what you expect
Make sure that your changes won‘t break anything
Keep others from breaking your code
Don’t break anything even in complex projects
Create a safety net for refactoring or for TYPO3 updates
Improve the structure of your code
Green feels good!
Let’s get some terms straight
Testsuite Testcase Test Assertion Test Test Testcase
Code test-first write test write code refactor
None