Example #1
0
 public function testDiffWithACollectionHavingObjectsNotPresentInTheFirstCollection()
 {
     $col1 = new Collection();
     $col2 = new Collection();
     $b = new Book();
     $col2[] = $b;
     $result = $col1->diff($col2);
     $this->assertInstanceOf('\\Propel\\Runtime\\Collection\\Collection', $result);
     $this->assertEquals(0, count($result));
 }