コード例 #1
0
 /**
  * @dataProvider toYamlDataProvider
  */
 public function testFromYAML($expected)
 {
     $coll = new PropelObjectCollection();
     $coll->setModel('Book');
     $coll->fromYAML($expected);
     // fix modified columns order
     foreach ($coll as $book) {
         $book->resetModified();
     }
     $this->assertEquals($this->coll, $coll);
 }