Beispiel #1
0
 public function testDuplicate()
 {
     $this->if($streamController = new testedClass(uniqid()))->then->object($duplicatedController = $streamController->duplicate())->isCloneOf($streamController)->if($streamController->setPath($path = uniqid()))->then->string($duplicatedController->getPath())->isEqualTo($path)->if($streamController->stream_lock())->then->object($duplicatedController->getCalls())->isEqualTo($streamController->getCalls())->if($streamController->stream_lock = function () {
     })->then->array($duplicatedController->getInvokers())->isEqualTo($streamController->getInvokers());
 }