Пример #1
0
 public function testSubclass()
 {
     $task = new ChildThread();
     $thread = new \KzykHys\Thread\Thread($task);
     $thread->start();
     $thread->wait();
     $this->assertGreaterThan(0, $thread->getPid());
 }
Пример #2
0
 public function testCoverageOnChildProcess()
 {
     $thread = new \KzykHys\Thread\Thread(new CoverageCollector());
     $thread->start();
     $thread->wait();
 }