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