/** * Tests that initialization from a deployment descriptor class works as expected. * * @return void */ public function testFromConfiguration() { // initialize the configuration $node = new MessageDrivenNode(); $node->initFromFile(__DIR__ . '/_files/dd-messagedrivenbean.xml'); // initialize the descriptor from the nodes data $this->descriptor->fromConfiguration($node); // check that the descriptor has been initialized $this->assertSame($this->descriptor, $this->descriptor->fromConfiguration($node)); $this->assertSame('ImportReceiver', $this->descriptor->getName()); $this->assertSame('AppserverIo\\Apps\\Example\\MessageBeans\\ImportReceiver', $this->descriptor->getClassName()); $this->assertCount(0, $this->descriptor->getEpbReferences()); $this->assertCount(0, $this->descriptor->getResReferences()); $this->assertCount(0, $this->descriptor->getReferences()); }