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
JLPDevs - Web Application Unit Testing: Strateg...
Search
JLP Community
December 05, 2015
Programming
49
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JLPDevs - Web Application Unit Testing: Strategy and Tools
JLP Community
December 05, 2015
More Decks by JLP Community
See All by JLP Community
JLP Community Profile
jlpcommunity
0
59
JLPDevs - Optimization Tooling for Modern Web App Development
jlpcommunity
3
210
Other Decks in Programming
See All in Programming
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
150
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
130
Hunting Vulnerabilities in Symfony with LLMs
vinceamstoutz
0
540
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
320
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
110
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
390
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
260
Agentic UI
manfredsteyer
PRO
0
150
依存関係から依存物へ―Dependencyという言葉の歴史をひも解く
j_lee
0
110
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
dRuby over BLE
makicamel
2
330
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
180
Featured
See All Featured
Amusing Abliteration
ianozsvald
1
200
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
Google's AI Overviews - The New Search
badams
0
1k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
190
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
290
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
350
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
330
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
280
A Tale of Four Properties
chriscoyier
163
24k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Transcript
Web Application Unit Testing: Strategy and Tools Presented by: Salman
El Farisi 05 Desember 2015 @ code margonda
Let's Move On Runnable Code Testable Code
Not So Testable Code
Better Version
Better Version (2)
Testing Pyramid
Web Application Unit Testing Challenge: Too much dependency Network
(HTTP Request) Database Third Party Library File System (upload / download file) Tools: PHPUnit (Unit testing framework) Mockery (Mock Object) Faker (Fake Object) PHP-DI / Pimple (Dependency Injection Library)
Mockery
Faker
Web Application Unit Testing (2)
Web Application Unit Testing (3)
Web Application Unit Testing (3) Assertion: Compare expected and actual
value AssertTrue() AssertNotNull() AssertEquals() AssertArrayHasKey() AssertClassHasAttribute() Etc. https://phpunit.de/manual/current/en/phpunit-book.html#appendixes.assertions
Mock Object RoleController.php Connect to database
Mock Object (2) RoleControllerTest.php Control the 'Role' class behaviour so
it wont touch the database
Fake Object Create fake object
Thank You :)