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
420
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
54
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
160
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
100
Test-driven development with PHPUnit
oliverklee
0
200
Writing PHPUnit tests for TYPO3 extensions
oliverklee
0
190
Software quality for TYPO3 projects: A story of cheese, games and tools
oliverklee
0
280
TDD für Senior-Devs
oliverklee
0
79
Gamification für Arbeit in Communities
oliverklee
0
110
Software quality, cheese and games
oliverklee
0
360
Other Decks in Technology
See All in Technology
「認証認可」という体験をデザインする ~Nekko Cloud認証認可基盤計画
logica0419
2
430
AIを活用した柔軟かつ効率的な社内リソース検索への取り組み
cygames
0
170
Tricentisにおけるテスト自動化へのAI活用ご紹介/20240910Shunsuke Katakura
shift_evolve
0
200
DuckDB雑紹介(1.1対応版)@DuckDB座談会
ktz
6
1.4k
Functional TypeScript
naoya
11
4.8k
ナレッジグラフとLLMの相互利用
koujikozaki
0
410
リアルお遍路+SORACOM IoT
ozk009
1
140
社内の学びの場・コミュニティ形成とエンジニア同士のリレーションシップ構築/devreljapan2024
nishiuma
3
290
技術的負債解消の取り組みと専門チームのお話
bengo4com
0
330
AI活用したくてもできなかった不動産SaaSの今とこれから
nealle
0
330
再考 アクターモデル/ reconsider actor model
ytake
0
350
SORACOMで実現するIoTのマルチクラウド対応 - IoTでのクリーンアーキテクチャの実現 -
kenichirokimura
0
390
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
25
3.9k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
8.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
41
6.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
359
19k
Build your cross-platform service in a week with App Engine
jlugia
228
18k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
24
610
Designing Experiences People Love
moore
138
23k
Designing for Performance
lara
604
68k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
For a Future-Friendly Web
brad_frost
174
9.3k
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