Pro PHP- Patterns, Frameworks, Testing and More
CHAPTER 7 ■ REFLECTION API^95 Listing 7-19. Creating the DocumentingReflectionClass (DocumentingReflection.php) class Documentin ...
(^96) CHAPTER 7 ■ REFLECTION API By now, this should be getting repetitive. Dozens of functions in these classes need to be over ...
CHAPTER 7 ■ REFLECTION API^97 if(isset($inlineTagData)) { $inlineTagData .= ' '. $addData; } else { $inlineTagData = $addData; } ...
(^98) CHAPTER 7 ■ REFLECTION API The code in Listing 7-21 demonstrates how to use the getMethods() method as well and the proces ...
CHAPTER 7 ■ REFLECTION API^99 This code has the following output: demoMethod Array ( [0] => This is the first test method ) p ...
(^100) CHAPTER 7 ■ REFLECTION API //If only a single attribute if(is_string($rawAttributes)) { $rawAttributes = array($rawAttrib ...
CHAPTER 7 ■ REFLECTION API^101 function setMethod(ReflectionMethod $method) { $this->method = $method; } function getMethod() ...
(^102) CHAPTER 7 ■ REFLECTION API /** * Divide two numbers * * @param int $a The value * @param int $b The divisor */ public fun ...
CHAPTER 7 ■ REFLECTION API^103 Using reflection, you can access and parse docblock comments. This chapter’s example used the doc ...
McArthur_819-9C07.fm Page 104 Friday, February 22, 2008 8:59 AM ...
105 ■ ■ ■ CHAPTER 8 Testing, Deployment, and Continuous Integration In the course of development for any reasonably complex appl ...
(^106) CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION Installing Subversion Subversion can be installed from packag ...
CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION^107 You will be asked for a commit message. These messages are criti ...
(^108) CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION Committing Changes and Resolving Conflicts. Now that the file ...
CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION^109 Notice the C beside newfile.txt. This indicates a conflict. If y ...
(^110) CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION Enabling Subversion Access The next step is to enable Subvers ...
CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION^111 Creating Your First Unit Test To get started creating your unit ...
(^112) CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION Listing 8-2. A Unit Test (./tests/DemoTest.php) <?php requ ...
CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION^113 > phpunit DemoTest PHPUnit 3.1.9 by Sebastian Bergmann. F Tim ...
(^114) CHAPTER 8 ■ TESTING, DEPLOYMENT, AND CONTINUOUS INTEGRATION The setUp() and tearDown() methods are called with each test ...
«
2
3
4
5
6
7
8
9
10
11
»
Free download pdf