diff options
author | Oleksandr Zahorulia <Hast4656@gmail.com> | 2016-09-30 22:50:50 +0300 |
---|---|---|
committer | Marco Ceppi <marco@ceppi.net> | 2016-09-30 21:50:50 +0200 |
commit | d8ef0dba1fa378fc22fe6d423f9423febb2d996d (patch) | |
tree | 125e225306ac315f85f6f950e6e1ac1e72f804d8 /Tests/Auth/OpenID/SReg.php | |
parent | 924f9aa42453cd0f9dba72587b4e2cdf7f4de874 (diff) | |
download | php-openid-d8ef0dba1fa378fc22fe6d423f9423febb2d996d.zip php-openid-d8ef0dba1fa378fc22fe6d423f9423febb2d996d.tar.gz php-openid-d8ef0dba1fa378fc22fe6d423f9423febb2d996d.tar.bz2 |
#130: PHP 7 compatibility (fixes #129)HEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'Tests/Auth/OpenID/SReg.php')
-rw-r--r-- | Tests/Auth/OpenID/SReg.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/Auth/OpenID/SReg.php b/Tests/Auth/OpenID/SReg.php index db5cd51..74acdf5 100644 --- a/Tests/Auth/OpenID/SReg.php +++ b/Tests/Auth/OpenID/SReg.php @@ -39,7 +39,7 @@ class CheckFieldNameTest extends PHPUnit_Framework_TestCase { // For supportsSReg test class FakeEndpoint { - function FakeEndpoint($supported) + function __construct($supported) { $this->supported = $supported; $this->checked_uris = array(); @@ -81,7 +81,7 @@ class SupportsSRegTest extends PHPUnit_Framework_TestCase { } class FakeMessage { - function FakeMessage() + function __construct() { $this->openid1 = false; $this->namespaces = new Auth_OpenID_NamespaceMap(); @@ -180,7 +180,7 @@ $__args_sentinel = 'args_sentinel'; $__ns_sentinel = 'ns_sentinel'; class SentinelFakeMessage { - function SentinelFakeMessage($test_case) + function __construct($test_case) { $this->test_case =& $test_case; $this->message = new Auth_OpenID_Message(); @@ -559,7 +559,7 @@ class SRegRequestTest extends PHPUnit_Framework_TestCase { } class DummySuccessResponse { - function DummySuccessResponse($message, $signed_stuff) + function __construct($message, $signed_stuff) { $this->message = $message; $this->signed_stuff = $signed_stuff; @@ -658,7 +658,7 @@ class Tests_Auth_OpenID_SReg extends PHPUnit_Framework_TestSuite { return "Tests_Auth_OpenID_SReg"; } - function Tests_Auth_OpenID_SReg() + function __construct() { $this->addTestSuite('SRegURITest'); $this->addTestSuite('CheckFieldNameTest'); |