public function runGiven(&$world, $action, $arguments) { switch ($action) { case 'Construir com csv e titulos': $world['pst'] = new PlanilhaStore(getCsv(), getTitulos()); break; default: return $this->notImplemented($action); } }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $this->object = new PlanilhaStore(getCsv(), getTitulos()); }
<?php include 'scripts/funciones.php'; if (haIniciadoSesion()) { $titulos = getTitulos(); } else { header('Location: login.php'); } ?> <html lang="es"> <head> <meta charset="UTF-8"> <title>Títulos</title> <link rel="stylesheet" href="css/estilos.css"> </head> <body> <?php require_once 'header.php'; ?> <nav class="menu-navegacion"> <div class="menu-boton" id="btnAdd"> <img src="img/agregar.png" alt="Agregar"> Agregar </div> <div class="menu-boton" id="btnEdit"> <img src="img/editar.png" alt="Editar"> Editar </div> <a href="generate/estatuto-edicion.php" class="menu-boton" id="btnLogout"> <img src="img/exportar.png" alt="Imprimir"> Ver estatuto