public function testAddSameChannelTwice()
 {
     $collection = new ChannelCollection();
     $channel = $this->getChannelMock('channel_one');
     $collection->addChannel($channel);
     $channel_duplicate = $this->getChannelMock('channel_one');
     $collection->addChannel($channel_duplicate);
     $this->assertCount(1, $collection->getChannels());
 }
Example #2
0
 /**
  * @return \SplObjectStorage
  */
 public function getAddressedChannels()
 {
     $this->checkParsed();
     return $this->channels->getChannels();
 }