public function testSubclass() { $task = new ChildThread(); $thread = new \KzykHys\Thread\Thread($task); $thread->start(); $thread->wait(); $this->assertGreaterThan(0, $thread->getPid()); }
public function testCoverageOnChildProcess() { $thread = new \KzykHys\Thread\Thread(new CoverageCollector()); $thread->start(); $thread->wait(); }