Exemple #1
0
 public function testIsInExcludedMethods()
 {
     $this->if($coverage = new testedClass())->then->boolean($coverage->isInExcludedMethods(uniqid()))->isFalse()->if($coverage->excludeMethod($method = uniqid()))->then->boolean($coverage->isInExcludedMethods(uniqid()))->isFalse()->boolean($coverage->isInExcludedMethods($method))->isTrue()->if($coverage->excludeMethod('/.+/'))->then->boolean($coverage->isInExcludedMethods(uniqid()))->isTrue();
 }