예제 #1
0
파일: coverage.php 프로젝트: xihewang/atoum
 public function testExcludeMethod()
 {
     $this->if($coverage = new testedClass())->then->object($coverage->excludeMethod($method = uniqid()))->isIdenticalTo($coverage)->array($coverage->getExcludedMethods())->isEqualTo(array($method))->object($coverage->excludeMethod($otherClass = rand(1, PHP_INT_MAX)))->isIdenticalTo($coverage)->array($coverage->getExcludedMethods())->isEqualTo(array($method, (string) $otherClass))->object($coverage->excludeMethod($method))->isIdenticalTo($coverage)->array($coverage->getExcludedMethods())->isEqualTo(array($method, (string) $otherClass));
 }