/** * Tests the static newDescriptorInstance() method. * * @return void */ public function testNewDescriptorInstance() { $this->assertInstanceOf('AppserverIo\\Description\\SingletonSessionBeanDescriptor', SingletonSessionBeanDescriptor::newDescriptorInstance()); }
/** * Tests the setter/getter for the post-detach lifecycle callbacks. * * @return void */ public function testSetGetPostDetachCallbacks() { $this->descriptor->setPostDetachCallbacks($postDetachCallbacks = array('attach')); $this->assertSame($postDetachCallbacks, $this->descriptor->getPostDetachCallbacks()); }