<?php/** * Tests in this file are unsorted, and should be placed in an appropriate * test file. If you are unsure where to put a unit test, place them in here * and hopefully someone else will move them. */classDoctrine_UnsortedTestCaseextendsDoctrine_UnitTestCase{publicfunctiontestCascadingInsert(){$package=newPackage();$package->description='Package';$packageverison=newPackageVersion();$packageverison->description='Version';$packageverisonnotes=newPackageVersionNotes();$packageverisonnotes->description='Notes';$package->Version[0]=$packageverison;$package->Version[0]->Note[0]=$packageverisonnotes;$package->save();$this->assertNotNull($package->id);$this->assertNotNull($package->Version[0]->id);$this->assertNotNull($package->Version[0]->Note[0]->id);}}