Loading… Flash Player 9 (or above) is needed to view presentations. We have detected that you do not have it on your computer. To install it, go here. Clean PHP - Presentation Transcript Clean PHPSebastian Bergmann May 20 th 2011 Hello! My n... 続きを読む
The other day I was using the BankAccount sample application during a PHPUnit training. When I showed this code ...<?php class Response extends HashMap { // ... } ?> ... one of the developers said: "That is wrong! A Response is not a Hash... 続きを読む
ext/test_helpers ext/test_helpers is an extension for the PHP Interpreter to ease testing of PHP code. Installation ext/test_helpers should be installed using the PEAR Installer. This installer is the backbone of PEAR and PECL, which provides... 続きを読む
PHP 5.3.99, which will hopefully be released as PHP 5.4 in less than six months, introduces the concept of optional strict type checking for scalars. In a nutshell, this means that PHP 5.3.99 introduces new syntax -- scalar type hints -- but ... 続きを読む
This article is part of a series on testing untestable code: Testing private methods Testing code that uses singletons Stubbing static methods Stubbing hard-coded dependencies In a unit test, mock objects can simulate the behavior of complex,... 続きを読む
You’re currently reading “Untestable Code,” an entry on Sebastian Bergmann Posted by: Sebastian Bergmann at 20.05.2009 / 23:00 Last updated 25.05.2009 Category: Presentations To prevent automated Bots from commentspamming, please enter the... 続きを読む
The map above contains the following tools that are useful for quality assurance in PHP projects: PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. phpmd scans PHP source code... 続きを読む
This repository is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are added as a member. Every repository with this icon () is private. This repository is pu... 続きを読む
Back in July, I came across an academic paper (more academic papers on testing that I read recently) titled "JExample: Exploiting Dependencies Between Tests to Improve Defect Localization". "A well-designed test suite should exhibit high cove... 続きを読む
Hello Sebastian, Thanks for the updating the current AOP state! I think on page 41 it should read "before- and after-advices, but not around". And isn't William's implementation called phpAspect? Do you have an update on the current implement... 続きを読む
You’re currently reading “Type-Safe Objects in PHP,” an entry on Sebastian Bergmann Posted by: Sebastian Bergmann at 23.05.2008 / 19:00 Last updated 01.10.2008 Category: PHP To prevent automated Bots from commentspamming, please enter the ... 続きを読む