Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function test_create() |
||
18 | { |
||
19 | $callback = function(){ |
||
20 | }; |
||
21 | $thread = new Thread(); |
||
22 | $thread->setProcessName('unit-test'); |
||
23 | $thread->setCallback($callback); |
||
24 | |||
25 | $this->assertSame($thread->getCallback(), ThreadFactory::create('unit-test', $callback)->getCallback()); |
||
26 | $this->assertSame($thread->getProcessName(), ThreadFactory::create('unit-test', $callback)->getProcessName()); |
||
27 | } |
||
30 |