X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/a39b9c1fd1fbd976ce9db682b06f73e92612400c..3de32bc0676f5a1c4116b48bc4a5b24e1c455a74:/samurai_lib/test/prueba.php 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
"; +} + ?>