X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/a39b9c1fd1fbd976ce9db682b06f73e92612400c..50c9069c8a75496f67e22d2331b785b5b74666fa:/samurai_lib/test/prueba.php?ds=sidebyside diff --git a/samurai_lib/test/prueba.php b/samurai_lib/test/prueba.php index c72bed8..2461ab8 100644 --- a/samurai_lib/test/prueba.php +++ b/samurai_lib/test/prueba.php @@ -4,7 +4,7 @@ require_once '../php/Samurai/Perm.php'; print "Prueba Objeto SA_Perm de samurai_lib
"; -$permiso = new SA_Perm(1,'mdegan@mecon'); +$permiso = new SA_Perm(1,'mmarre@mecon'); print "
Probando la funcion tiene -> "; if ($permiso->tiene(1,2)) { @@ -40,5 +40,12 @@ foreach ($rr as $r) { } +print "
Probando la funcion listaPermisos -> "; +$rr = $permiso->listaPermisos(); +print "Tiene los siguientes permisos
"; +foreach ($rr as $r) { + print "$r
"; +} + ?>