getClosures() public method

public getClosures ( )
Example #1
0
 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));
 }