title: PHPUnit and C.R.A.P index
body: <p>I am using php undercontrol and the code browser report some CRAP index error on every setter/getter i.e. code like this</p>
  
  <pre><code>public function getFoo()
  {
      return $this-&gt;_foo;
  }
  </code></pre>
  
  <p>The getter/setter are covered by the unit testing, the complexity is none since there is no if/for/switch/foreach. so why I get a CRAP index of 1 for that code??? </p>
  
  <p>PS: self answering myself might be because the complexity is none but my main issue is that every getter/setter generate a warning because of the CRAP index so is there anyway to tell phpunit/php code coverage to make the CRAP equals to 0 for function with a 0 complexity index.</p>