Beispiel #1
0
 /**
  * Test getEntity function when created before and ExS was initialised
  * 
  * @return void
  */
 public function testGetEntityCreatedBeforeInitialised()
 {
     $entityType = '\\AppserverIo\\Concurrency\\ExecutorService\\Entities\\Storage';
     ExS\Core::init();
     ExS\Core::newFromEntity($entityType, 'storage');
     $exSentity = ExS\Core::getEntity('storage');
     $this->assertInstanceOf('\\AppserverIo\\Concurrency\\ExecutorService', $exSentity);
 }
 /**
  * (non-PHPdoc)
  * @see PHPUnit_Framework_TestCase::setUp()
  */
 public function setUp()
 {
     // init ExecutorService
     ExS\Core::init();
 }