summaryrefslogtreecommitdiffstats
path: root/bindings/php5/tests/profile_tests.php
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:08:51 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:08:51 +0000
commit1b3acf88af0388020053167b4646ee6c08e09e73 (patch)
tree8a2c6f375111861e9a53ddbc1615ba66e0140626 /bindings/php5/tests/profile_tests.php
parent500495f0dd0df08c51e95f22e7d1ec0bac354030 (diff)
[project @ fpeters@0d.be-20080328175710-s4031yloqsdbmvel]
merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-28 18:57:10.522000+01:00
Diffstat (limited to 'bindings/php5/tests/profile_tests.php')
-rwxr-xr-xbindings/php5/tests/profile_tests.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/bindings/php5/tests/profile_tests.php b/bindings/php5/tests/profile_tests.php
index cb8f4ade..71d525bf 100755
--- a/bindings/php5/tests/profile_tests.php
+++ b/bindings/php5/tests/profile_tests.php
@@ -1,4 +1,3 @@
-#! /usr/bin/env php
<?php
# Lasso - A free implementation of the Liberty Alliance specifications.
#
@@ -112,10 +111,7 @@ function test04() {
try {
$login->processResponseMsg("");
}
- catch (LassoError $error) {
- if ($error->getCode() != LASSO_PARAM_ERROR_INVALID_VALUE) {
- throw $error;
- }
+ catch (LassoProfileInvalidMsgError $error) {
}
echo "OK.\n";
@@ -193,10 +189,7 @@ function test06() {
echo "logout.initRequest without having set identity before should fail\n";
assert(False);
}
- catch (LassoError $error) {
- if ($error->getCode() != LASSO_PROFILE_ERROR_SESSION_NOT_FOUND) {
- throw $error;
- }
+ catch (LassoProfileSessionNotFoundError $error) {
}
echo "OK.\n";