예제 #1
0
 public function testGetInstance()
 {
     $config = Application_Configuration::getInstance();
     $this->assertNotNull($config);
     $this->assertInstanceOf('Application_Configuration', $config);
     $this->assertSame($config, Application_Configuration::getInstance());
 }
예제 #2
0
 /**
  * Oai_Model_Container constructor.
  * @param $docId
  * @param null $logger
  */
 public function __construct($docId)
 {
     $this->_doc = $this->validateId($docId);
     $this->_docId = $this->_doc->getId();
     $this->_appConfig = Application_Configuration::getInstance();
 }