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
380
Test-driven development with PHPUnit
Oliver Klee
July 15, 2017
Tweet
Share
More Decks by Oliver Klee
See All by Oliver Klee
Content-Synchronisierung
oliverklee
0
16
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
53
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
82
Test-driven development with PHPUnit
oliverklee
0
170
Writing PHPUnit tests for TYPO3 extensions
oliverklee
0
140
Software quality for TYPO3 projects: A story of cheese, games and tools
oliverklee
0
210
TDD für Senior-Devs
oliverklee
0
62
Gamification für Arbeit in Communities
oliverklee
0
110
Software quality, cheese and games
oliverklee
0
290
Other Decks in Technology
See All in Technology
長期運用プロジェクトでのMySQLからTiDB移行の検証
colopl
2
670
カオナビの利用実績をアウトカムへつなげる旅 / example-of-data-management-startup-in-kaonavi
kaonavi
0
120
Databricksを活用してDELISH KITCHENのレシピレコメンドを開発した話
furu8
0
250
最近たまに見かけるTiDBってなんだ? - Findy
pingcap0315
2
600
Discord とビルダー&チャットボットの使い方 / How to use Discord and Builder & Chatbots
ks91
PRO
0
130
2024/4/26 コンピュータ歴史博物館解説告知
toshi_atsumi
0
200
[2024年3月版] Databricksのシステムアーキテクチャ
databricksjapan
8
1.9k
シン・Kafka / shin-kafka
oracle4engineer
PRO
7
2.7k
自動生成を活用した、運用保守コストを抑える Error/Alert/Runbook の一元集約管理 / Centralized management of Error/Alert/Runbook to minimize operational costs using automated code generation
biwashi
9
2.1k
複雑な構成要素を持つUIとの向き合い方 〜新・支出グラフでの実例〜 / B43 TECH TALK
nakamuuu
0
100
Databricks:『生成AI World Cup』のご案内
databricksjapan
2
150
Hands-on / Kaname Frusawa / Cloud Compare Users Meetup 2024 at University of Tokyo on April 17
paraworld
2
470
Featured
See All Featured
Being A Developer After 40
akosma
56
580k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
356
22k
Become a Pro
speakerdeck
PRO
10
4.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.3k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Writing Fast Ruby
sferik
620
60k
The Cost Of JavaScript in 2023
addyosmani
14
3.8k
A designer walks into a library…
pauljervisheath
199
23k
4 Signs Your Business is Dying
shpigford
175
21k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Agile that works and the tools we love
rasmusluckow
324
20k
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