Beispiel #1
0
 public function setUp()
 {
     $devm = new ModelDeveloper();
     $devm->getModelDB();
     $this->test = new ControllerDeveloper();
     $this->test->init();
     $this->assertTrue(is_object($this->test) === true);
     $this->assertTrue(get_class($this->test) === "Olif\\ControllerDeveloper");
 }
Beispiel #2
0
 * Función para cargar todas las clases de Controladores para poder instanciar directamente.
 * ** ***** ===================\\//=================== ***** *
 */
require_once CORE_ROOT . MODELS . DIRECTORY_SEPARATOR . 'ModelDeveloper.php';
require_once CORE_ROOT . CONTROLLERS . DIRECTORY_SEPARATOR . 'ControllerDeveloper.php';
require_once CORE_ROOT . VIEWS . DIRECTORY_SEPARATOR . 'ViewPage.php';
/**
 * ***** ===================//\\=================== ***** *
 */
/**
 * *******
 * Creamos e instanciamos las clases mínimas
 * ** ***** ===================\\//=================== ***** *
 */
$devm = new ModelDeveloper();
$devm->getModelDB();
$devm->db->connect(DBHOST, DBUSER, DBPASS, DBNAME, DBPORT, DBSOCKET);
/**
 * ***** ===================//\\=================== ***** *
 */
/**
 * *******
 * Creamos e instanciamos las clases mínimas de página
 * ** ***** ===================\\//=================== ***** *
 */
$dev = new ControllerDeveloper();
$dev->init();
/**
 * ***** ===================//\\=================== ***** *
 */
/**