* @author Toni Uebernickel */ class XmlDataLoaderTest extends TestCase { public function testXmlLoad() { $fixtures = << XML; $filename = $this->getTempFile($fixtures); $loader = new XmlDataLoader(__DIR__.'/../../Fixtures/DataFixtures/Loader', array()); $loader->load(array($filename), 'default'); $books = \Propel\Bundle\PropelBundle\Tests\Fixtures\DataFixtures\Loader\CoolBookQuery::create()->find($this->con); $this->assertCount(1, $books); $book = $books[0]; $this->assertInstanceOf('Propel\Bundle\PropelBundle\Tests\Fixtures\DataFixtures\Loader\CoolBookAuthor', $book->getCoolBookAuthor()); } }