From 42934cb50ee967a650d6c894180df76c34815dd6 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:04:48 +0000 Subject: [project @ fpeters@0d.be-20071106133809-z6qxlw10eooqrkwp] merged damien branch Original author: Frederic Peters Date: 2007-11-06 14:38:09.490000+01:00 --- bindings/php5/tests/binding_tests.php | 49 +++++++++++++++++++++++++++++++++++ bindings/php5/tests/profile_tests.php | 27 +++++++++++++++---- 2 files changed, 71 insertions(+), 5 deletions(-) create mode 100755 bindings/php5/tests/binding_tests.php (limited to 'bindings/php5') diff --git a/bindings/php5/tests/binding_tests.php b/bindings/php5/tests/binding_tests.php new file mode 100755 index 00000000..1a2d999d --- /dev/null +++ b/bindings/php5/tests/binding_tests.php @@ -0,0 +1,49 @@ +#! /usr/bin/env php + + Name of the organization + '; + + $server = new LassoServer( + DATA_DIR . "sp1-la/metadata.xml", + DATA_DIR . "sp1-la/private-key-raw.pem", + NULL, + DATA_DIR . "sp1-la/certificate.pem"); + assert(!is_null($server->organization)); + assert($server->organization == $organisation_string); + + echo "OK.\n"; +} + +lasso_init(); +test01(); +lasso_shutdown(); + 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 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(); -- cgit