Пример #1
0
 /**
  * @covers EBT\CommonObject\Id\IdSet::intersects
  */
 public function testIntersects()
 {
     $idSet1 = new IdSet(array(new Id(2), new Id(4), new Id(5)));
     $idSet2 = new IdSet(array(new Id(3), new Id(7)));
     $idSet3 = new IdSet(array(new Id(2), new Id(8)));
     $this->assertFalse($idSet1->intersects($idSet2));
     $this->assertTrue($idSet1->intersects($idSet3));
     $this->assertFalse($idSet2->intersects($idSet3));
 }
 /**
  * @return array
  */
 public function toArray()
 {
     return array(self::APPROVED => $this->approved->toArray(), self::REJECTED => $this->rejected->toArray());
 }