This presentation will give you details about a refactoring strategy called Test Harness.
This Test Strategy will be explained with concrete parts of code in PHP using Symfony Framework. This presentation is part the presentation Symphonie pour PHP industrialisé en agilité majeure (available in my slides)
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Code part - Symphonie pour PHP industrialisé en agilité majeure
1. Given I am a visitor When I go to url http://www.infos-du-net.com.sf/forum/ Then below the meta-category "Multimédia", I have the following sub-categories with url | category name | decrypted url | | Image et son | http://www.infos-du-net.com.sf/forum/forum-20.html | | Appareils photo, cameras | http://www.infos-du-net.com.sf/forum/forum-47.html | | Consoles | http://www.infos-du-net.com.sf/forum/forum-29.html | 1. Harnais de sécurité Définition du comportement avec le PO
3. public function executeIndex(sfWebRequest $request) { … $categoryList = FrmCategoryTable ::getForumList( $idSite, $culture, $user); … } 2. Implémenter scenarii Appel de l’ancien DAO FrmCategoryTable Code existant :
4. public function executeIndex(sfWebRequest $request) { … $categoryList = $this-> categoryProvider -> getAllCategories ( $culture, $brand, $country, ICategoryProvider::SERVICE_FORUM, $user); … } 3. Encapsuler dans API Code encapsulé : Passage par l’API categoryProvider
5. class CategoryProvider implements ICategoryProvider { public function getAllCategories($culture, $brand, $country, $service, $user) { … $legacyCategories = FrmCategoryTable::getForumList ( $siteId, $culture, $user, $categoryLevel); … } } 3. Encapsuler dans API API CategoryProvider : Appel de l’ancien DAO dans l'API