summaryrefslogtreecommitdiffstats
path: root/bindings/php5/tests/profile_tests.php
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:04:48 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:04:48 +0000
commit42934cb50ee967a650d6c894180df76c34815dd6 (patch)
treeb484f3ef8cae9b4d4c9d4f9eb0b079b2636482ab /bindings/php5/tests/profile_tests.php
parentbebf0b17639a292af7349c3427bc2dd993b145fb (diff)
downloadlasso-42934cb50ee967a650d6c894180df76c34815dd6.tar.gz
lasso-42934cb50ee967a650d6c894180df76c34815dd6.tar.xz
lasso-42934cb50ee967a650d6c894180df76c34815dd6.zip
[project @ fpeters@0d.be-20071106133809-z6qxlw10eooqrkwp]
merged damien branch Original author: Frederic Peters <fpeters@0d.be> Date: 2007-11-06 14:38:09.490000+01:00
Diffstat (limited to 'bindings/php5/tests/profile_tests.php')
-rwxr-xr-xbindings/php5/tests/profile_tests.php27
1 files changed, 22 insertions, 5 deletions
diff --git a/bindings/php5/tests/profile_tests.php b/bindings/php5/tests/profile_tests.php
index 2aa900cc..04e32848 100755
--- a/bindings/php5/tests/profile_tests.php
+++ b/bindings/php5/tests/profile_tests.php
@@ -1,10 +1,8 @@
#! /usr/bin/env php
<?php
-# $Id: binding_tests.php 3238 2007-05-30 17:24:50Z dlaniel $
-#
-# PHP unit tests for Lasso library
-#
-# * Copyright (C) 2004-2007 Entr'ouvert
+# Lasso - A free implementation of the Liberty Alliance specifications.
+#
+# Copyright (C) 2004-2007 Entr'ouvert
# http://lasso.entrouvert.org
#
# Authors: See AUTHORS file in top-level directory.
@@ -209,6 +207,25 @@ function test06() {
echo "OK.\n";
}
+function test07() {
+ echo "IDP logout without session and identity; testing logout.getNextProviderId... ";
+
+ $server = new LassoServer(
+ DATA_DIR . "idp1-la/metadata.xml",
+ DATA_DIR . "idp1-la/private-key-raw.pem",
+ NULL,
+ DATA_DIR . "idp1-la/certificate.pem");
+ $server->addProvider(
+ LASSO_PROVIDER_ROLE_IDP,
+ DATA_DIR . "sp1-la/metadata.xml",
+ DATA_DIR . "sp1-la/public-key.pem",
+ DATA_DIR . "sp1-la/certificate.pem");
+
+ $logout = new LassoLogout($server);
+ assert(is_null($logout->next_providerID));
+
+ echo "OK.\n";
+}
lasso_init();
test01();