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
Gewaltfreie Kommunikation: ein Crashkurs
oliverklee
0
27
Motivationspsychologie und Gamification in Non-Profit-Organisationen
oliverklee
0
81
Test-driven development with PHPUnit
oliverklee
0
150
Writing PHPUnit tests for TYPO3 extensions
oliverklee
0
130
Software quality for TYPO3 projects: A story of cheese, games and tools
oliverklee
0
200
TDD für Senior-Devs
oliverklee
0
58
Gamification für Arbeit in Communities
oliverklee
0
110
Software quality, cheese and games
oliverklee
0
280
Test-driven development with PHPUnit
oliverklee
0
260
Other Decks in Technology
See All in Technology
UIからの自動テスト事例
tomasagi
8
3.3k
MLOpsのエッセンスを取り⼊れて評価 pipelineを再構築している件
sansantech
PRO
1
230
【OpenAI本出版記念】npakaによるOpenAI最新技術情報と技術情報キャッチアップ術
npaka
8
1.4k
SREのキャリア、 あるいは生態 / #ya8
cohalz
10
1k
テストだけで品質は上がらない?! エセ自己組織化した品質組織からの脱却 / JaSST'24 Tokyo
visional_engineering_and_design
9
3k
調整さんの調整結果をカレンダーへ登録するGPTsを作った話
hrsano645
1
160
layerx-0-to-1-product-development-in-compound-startups
shnjtk
1
520
本気でプロダクトに向き合うCTOになるために必要な事 (技育祭2024春)
mosa_siru
33
11k
【Cyber-sec+】ログの森で出会ったCloudTrail との奇妙な旅
hssh2_bin
1
220
スクラムマスター不在でスクラムをやるのは(とても辛いので)やめておけ! #scrumfukuoka
nulabinc
PRO
4
900
【OpsJAWS】EC2 のセキュリティの運用と監視について考えてみた件
hssh2_bin
4
590
『QAという人』が必要ではなく、『QAという技術』が必要
sadonosake
2
260
Featured
See All Featured
Scaling GitHub
holman
456
140k
Building Adaptive Systems
keathley
29
1.8k
Code Review Best Practice
trishagee
54
15k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
219
21k
BBQ
matthewcrist
78
8.7k
Thoughts on Productivity
jonyablonski
57
3.7k
Web Components: a chance to create the future
zenorocha
304
41k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.5k
Statistics for Hackers
jakevdp
789
220k
Large-scale JavaScript Application Architecture
addyosmani
501
110k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
272
12k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
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