示例#1
0
 /**
  * @test
  */
 public function shouldGetAllTheAssignedChannels()
 {
     $channels = Channels::createWaiting(5);
     foreach ($channels->getWaitingChannels() as $channel) {
         $process = $this->getMockBuilder('\\Liuggio\\Spawn\\Process\\Process')->disableOriginalConstructor()->getMock();
         $channels->assignAProcess($channel, $process);
     }
     $this->assertCount(5, $channels->getAssignedChannels());
     $this->assertCount(0, $channels->getWaitingChannels());
 }