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)); }