/** * testMagicSleepMethodReturnsExpectedSetOfPropertyNames * * @return void */ public function testMagicSleepMethodReturnsExpectedSetOfPropertyNames() { $class = new PHP_Depend_Code_Class(__CLASS__); $class->setCache(new PHP_Depend_Util_Cache_Driver_Memory()); $class->setPackage(new PHP_Depend_Code_Package(__FUNCTION__)); self::assertEquals(array('constants', 'interfaceReferences', 'parentClassReference', 'cache', 'context', 'docComment', 'endLine', 'modifiers', 'name', 'nodes', 'packageName', 'startLine', 'userDefined', 'uuid'), $class->__sleep()); }