* @author Toni Uebernickel */ class YamlDataDumperTest extends TestCase { public function testYamlDump() { $author = new \Propel\PropelBundle\Tests\Fixtures\DataFixtures\Loader\CoolBookAuthor(); $author->setName('A famous one')->save($this->con); $complementary = new \stdClass(); $complementary->first_word_date = '2012-01-01'; $book = new \Propel\PropelBundle\Tests\Fixtures\DataFixtures\Loader\CoolBook(); $book ->setName('An important one') ->setAuthorId(1) ->setComplementaryInfos($complementary) ->save($this->con) ; $filename = $this->getTempFile(); $loader = new YamlDataDumper(__DIR__.'/../../Fixtures/DataFixtures/Loader', array()); $loader->dump($filename); $expected = <<assertEquals($expected, $result); } }