public function testGetCollectionInheritance() { $this->assertEquals(array('My_ShantyMongo_User'), My_ShantyMongo_User::getCollectionInheritance()); $inheritance = My_ShantyMongo_Student::getCollectionInheritance(); $this->assertEquals('My_ShantyMongo_Student', $inheritance[0]); $this->assertEquals('My_ShantyMongo_User', $inheritance[1]); $inheritance = My_ShantyMongo_ArtStudent::getCollectionInheritance(); $this->assertEquals('My_ShantyMongo_ArtStudent', $inheritance[0]); $this->assertEquals('My_ShantyMongo_Student', $inheritance[1]); $this->assertEquals('My_ShantyMongo_User', $inheritance[2]); }