LoggerFormattingInfo.php
Current file: /home/ihabunek/apache/log4php/src/main/php/helpers/LoggerFormattingInfo.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
0.00% 0 / 1
66.67% 2 / 3 CRAP
83.33% 5 / 6
LoggerFormattingInfo
0.00% 0 / 1
66.67% 2 / 3 3.04
83.33% 5 / 6
 __construct()
100.00% 1 / 1 1
100.00% 1 / 1
 reset()
100.00% 1 / 1 1
100.00% 4 / 4
 dump()
0.00% 0 / 1 2
0.00% 0 / 1


       1                 : <?php                                                                                                                        
       2                 : /**                                                                                                                          
       3                 :  * Licensed to the Apache Software Foundation (ASF) under one or more                                                        
       4                 :  * contributor license agreements. See the NOTICE file distributed with                                                      
       5                 :  * this work for additional information regarding copyright ownership.                                                       
       6                 :  * The ASF licenses this file to You under the Apache License, Version 2.0                                                   
       7                 :  * (the "License"); you may not use this file except in compliance with                                                      
       8                 :  * the License. You may obtain a copy of the License at                                                                      
       9                 :  *                                                                                                                           
      10                 :  *       http://www.apache.org/licenses/LICENSE-2.0                                                                          
      11                 :  *                                                                                                                           
      12                 :  * Unless required by applicable law or agreed to in writing, software                                                       
      13                 :  * distributed under the License is distributed on an "AS IS" BASIS,                                                         
      14                 :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.                                                  
      15                 :  * See the License for the specific language governing permissions and                                                       
      16                 :  * limitations under the License.                                                                                            
      17                 :  *                                                                                                                           
      18                 :  * @package log4php                                                                                                          
      19                 :  */                                                                                                                          
      20                 :                                                                                                                              
      21                 : /**                                                                                                                          
      22                 :  * This class encapsulates the information obtained when parsing                                                             
      23                 :  * formatting modifiers in conversion modifiers.                                                                             
      24                 :  *                                                                                                                           
      25                 :  * @package log4php                                                                                                          
      26                 :  * @subpackage helpers                                                                                                       
      27                 :  * @since 0.3                                                                                                                
      28                 :  */                                                                                                                          
      29                 : class LoggerFormattingInfo {                                                                                                 
      30                 :                                                                                                                              
      31                 :     public $min = -1;                                                                                                        
      32                 :     public $max = 0x7FFFFFFF;                                                                                                
      33                 :     public $leftAlign = false;                                                                                               
      34                 :                                                                                                                              
      35                 :     /**                                                                                                                      
      36                 :      * Constructor                                                                                                           
      37                 :      */                                                                                                                      
      38              19 :     public function __construct() {}                                                                                         
      39                 :                                                                                                                              
      40                 :     public function reset() {                                                                                                
      41              16 :         $this->min = -1;                                                                                                     
      42              16 :         $this->max = 0x7FFFFFFF;                                                                                             
      43              16 :         $this->leftAlign = false;                                                                                            
      44              16 :     }                                                                                                                        
      45                 :                                                                                                                              
      46                 :     public function dump() {                                                                                                 
      47                 :         // TODO: other option to dump?                                                                                       
      48                 :         // LoggerLog::debug("LoggerFormattingInfo::dump() min={$this->min}, max={$this->max}, leftAlign={$this->leftAlign}");
      49               0 :     }                                                                                                                        
      50                 : }                                                                                                                            

Generated by PHP_CodeCoverage 1.1.1 using PHP 5.3.3-7+squeeze3 and PHPUnit 3.6.3 at Sat Feb 18 22:32:39 GMT 2012.