phpucMergeCodeTest
Current file: /home/manu/Projects/workspace.zend-studio/phpUnderControl/trunk/docs/log-merge/MergeCodeHelper.php
Legend: executed not executed dead code

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
33.33 %33.33%
33.33% 1 / 3
60.00 %60.00%
60.00% 3 / 5
 
phpucMergeCodeHelper
100.00 %100.00%
100.00% 1 / 1
33.33 %33.33%
33.33% 1 / 3
60.00 %60.00%
60.00% 3 / 5
 public function version520()
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1
 public function version525()
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 3 / 3
 public function versionAny()
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1


       1                 : <?php                                                                         
       2                 : /**                                                                           
       3                 :  * This file is part of phpUnderControl.                                      
       4                 :  *                                                                            
       5                 :  * PHP Version 5.2.0                                                          
       6                 :  *                                                                            
       7                 :  * Copyright (c) 2007-2008, Manuel Pichler <mapi@phpundercontrol.org>.        
       8                 :  * All rights reserved.                                                       
       9                 :  *                                                                            
      10                 :  * Redistribution and use in source and binary forms, with or without         
      11                 :  * modification, are permitted provided that the following conditions         
      12                 :  * are met:                                                                   
      13                 :  *                                                                            
      14                 :  *   * Redistributions of source code must retain the above copyright         
      15                 :  *     notice, this list of conditions and the following disclaimer.          
      16                 :  *                                                                            
      17                 :  *   * Redistributions in binary form must reproduce the above copyright      
      18                 :  *     notice, this list of conditions and the following disclaimer in        
      19                 :  *     the documentation and/or other materials provided with the             
      20                 :  *     distribution.                                                          
      21                 :  *                                                                            
      22                 :  *   * Neither the name of Manuel Pichler nor the names of his                
      23                 :  *     contributors may be used to endorse or promote products derived        
      24                 :  *     from this software without specific prior written permission.          
      25                 :  *                                                                            
      26                 :  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS        
      27                 :  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT          
      28                 :  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS          
      29                 :  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE             
      30                 :  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,        
      31                 :  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,       
      32                 :  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;           
      33                 :  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER           
      34                 :  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT         
      35                 :  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN          
      36                 :  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE            
      37                 :  * POSSIBILITY OF SUCH DAMAGE.                                                
      38                 :  *                                                                            
      39                 :  * @category   QualityAssurance                                               
      40                 :  * @package    PhpUnderControl                                                
      41                 :  * @subpackage Documentation                                                  
      42                 :  * @author     Manuel Pichler <mapi@phpundercontrol.org>                      
      43                 :  * @copyright  2007-2008 Manuel Pichler. All rights reserved.                 
      44                 :  * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
      45                 :  * @version    SVN: $Id: PhpUnderControl.php 2631 2008-03-18 15:23:55Z mapi $ 
      46                 :  * @link       http://www.phpundercontrol.org/                                
      47                 :  */                                                                           
      48                 :                                                                               
      49                 : /**                                                                           
      50                 :  * Documentation/Example/Test class for environment specific code.            
      51                 :  *                                                                            
      52                 :  * @category   QualityAssurance                                               
      53                 :  * @package    PhpUnderControl                                                
      54                 :  * @subpackage Documentation                                                  
      55                 :  * @author     Manuel Pichler <mapi@phpundercontrol.org>                      
      56                 :  * @copyright  2007-2008 Manuel Pichler. All rights reserved.                 
      57                 :  * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
      58                 :  * @version    Release: @package_version@                                     
      59                 :  * @link       http://www.phpundercontrol.org/                                
      60                 :  */                                                                           
      61                 : class phpucMergeCodeHelper                                                    
      62                 : {                                                                             
      63                 :     /**                                                                       
      64                 :      * Returns a php 5.2.0 specific token                                     
      65                 :      *                                                                        
      66                 :      * @return string                                                         
      67                 :      */                                                                       
      68                 :     public function version520()                                              
      69                 :     {                                                                         
      70               0 :         return '5.2.0';                                                       
      71                 :     }                                                                         
      72                 :                                                                               
      73                 :     /**                                                                       
      74                 :      * Returns a php 5.2.5 specific token                                     
      75                 :      *                                                                        
      76                 :      * @return string                                                         
      77                 :      */                                                                       
      78                 :     public function version525()                                              
      79                 :     {                                                                         
      80               1 :         include dirname( __FILE__ ) . '/MergeCode525.php';                    
      81                 :                                                                               
      82               1 :         $obj = new phpucMergeCode525();                                       
      83                 :                                                                               
      84               1 :         return $obj->version();                                               
      85                 :     }                                                                         
      86                 :                                                                               
      87                 :     /**                                                                       
      88                 :      * Returns current php version specific token.                            
      89                 :      *                                                                        
      90                 :      * @return string                                                         
      91                 :      */                                                                       
      92                 :     public function versionAny()                                              
      93                 :     {                                                                         
      94               0 :         return phpversion();                                                  
      95                 :     }                                                                         

Generated by PHPUnit 3.2.18 and Xdebug 2.0.2 at Mon Apr 7 16:11:58 CEST 2008.