ActionCollection.php
Current file: /home/nuno/workspace/phmagick/phMagick/Core/ActionCollection.php
Legend: executed not executed dead code

  Coverage
  Classes Functions / Methods Lines
Total
100.00% 1 / 1
100.00% 3 / 3 CRAP
100.00% 4 / 4
ActionCollection
100.00% 1 / 1
100.00% 3 / 3 3
100.00% 4 / 4
 add(Action $item)
100.00% 1 / 1 1
100.00% 2 / 2
 getAll()
100.00% 1 / 1 1
100.00% 1 / 1
 get($index)
100.00% 1 / 1 1
100.00% 1 / 1


       1                 : <?php                                       
       2                 : namespace phMagick\Core;                    
       3                 :                                             
       4                 : class ActionCollection                      
       5                 : {                                           
       6                 :     protected $items = array();             
       7                 :                                             
       8                 :     public function add(Action $item)       
       9                 :     {                                       
      10               2 :         $this->items[] = $item;             
      11               2 :     }                                       
      12                 :                                             
      13                 :     public function getAll()                
      14                 :     {                                       
      15               1 :         return $this->items;                
      16                 :     }                                       
      17                 :                                             
      18                 :     public function get($index)             
      19                 :     {                                       
      20               1 :         return $this->items[intval($index)];
      21                 :     }                                       
      22                 : }                                           

Generated by PHP_CodeCoverage 1.1.1 using PHP 5.3.10 and PHPUnit 3.6.7 at Fri Apr 20 19:24:32 CEST 2012.