Inheritance: extends recursiveFilterIterator
コード例 #1
0
ファイル: closure.php プロジェクト: xihewang/atoum
 public function testAddClosure()
 {
     $this->if($filter = new testedClass(new \recursiveArrayIterator(array())))->then->object($filter->addClosure($closure = function () {
     }))->isIdenticalTo($filter)->array($filter->getClosures())->isEqualTo(array($closure))->object($filter->addClosure($otherClosure = function () {
     }))->isIdenticalTo($filter)->array($filter->getClosures())->isEqualTo(array($closure, $otherClosure));
 }