summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 13:43:55 -0700
committerLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 13:43:55 -0700
commita2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0 (patch)
treeb270b58510c9c7a8b0c20c42c33d0b9df7095e87 /Tests
parentae52c6b3a3b9741c0ef60b6c91ba27af1d85eab7 (diff)
downloadphp-openid-a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0.zip
php-openid-a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0.tar.gz
php-openid-a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0.tar.bz2
[ remove closing ?> tag from all files ]
Reviewed By: Will Norris Facebook has a policy to not have closing ?> tags at the bottom of PHP files. It can unintentionally introduce newlines which causes ridiculous bugs. This is recommended in the Zend style guide: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Auth/OpenID/AX.php1
-rw-r--r--Tests/Auth/OpenID/Association.php2
-rw-r--r--Tests/Auth/OpenID/AssociationResponse.php1
-rw-r--r--Tests/Auth/OpenID/AuthRequest.php1
-rw-r--r--Tests/Auth/OpenID/BigMath.php1
-rw-r--r--Tests/Auth/OpenID/Consumer.php2
-rw-r--r--Tests/Auth/OpenID/CryptUtil.php1
-rw-r--r--Tests/Auth/OpenID/DiffieHellman.php2
-rw-r--r--Tests/Auth/OpenID/Discover_OpenID.php1
-rw-r--r--Tests/Auth/OpenID/Extension.php1
-rw-r--r--Tests/Auth/OpenID/HMAC.php2
-rw-r--r--Tests/Auth/OpenID/KVForm.php2
-rw-r--r--Tests/Auth/OpenID/MemStore.php2
-rw-r--r--Tests/Auth/OpenID/Message.php2
-rw-r--r--Tests/Auth/OpenID/Negotiation.php1
-rw-r--r--Tests/Auth/OpenID/Nonce.php2
-rw-r--r--Tests/Auth/OpenID/OpenID_Yadis.php3
-rw-r--r--Tests/Auth/OpenID/PAPE.php2
-rw-r--r--Tests/Auth/OpenID/Parse.php2
-rw-r--r--Tests/Auth/OpenID/RPVerify.php11
-rw-r--r--Tests/Auth/OpenID/SReg.php1
-rw-r--r--Tests/Auth/OpenID/Server.php2
-rw-r--r--Tests/Auth/OpenID/StoreTest.php2
-rw-r--r--Tests/Auth/OpenID/TestUtil.php1
-rw-r--r--Tests/Auth/OpenID/TrustRoot.php2
-rw-r--r--Tests/Auth/OpenID/URINorm.php1
-rw-r--r--Tests/Auth/OpenID/Util.php2
-rw-r--r--Tests/Auth/OpenID/VerifyDisco.php1
-rw-r--r--Tests/Auth/Yadis/DiscoverData.php1
-rw-r--r--Tests/Auth/Yadis/Discover_Yadis.php1
-rw-r--r--Tests/Auth/Yadis/ParseHTML.php1
-rw-r--r--Tests/Auth/Yadis/TestUtil.php2
-rw-r--r--Tests/Auth/Yadis/XRDS.php1
-rw-r--r--Tests/Auth/Yadis/XRI.php1
-rw-r--r--Tests/Auth/Yadis/Yadis.php1
-rw-r--r--Tests/TestDriver.php2
36 files changed, 22 insertions, 42 deletions
diff --git a/Tests/Auth/OpenID/AX.php b/Tests/Auth/OpenID/AX.php
index f723379..0a85ed2 100644
--- a/Tests/Auth/OpenID/AX.php
+++ b/Tests/Auth/OpenID/AX.php
@@ -790,4 +790,3 @@ class Tests_Auth_OpenID_AX extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/Association.php b/Tests/Auth/OpenID/Association.php
index 98b2e64..d658296 100644
--- a/Tests/Auth/OpenID/Association.php
+++ b/Tests/Auth/OpenID/Association.php
@@ -51,4 +51,4 @@ class Tests_Auth_OpenID_Association extends PHPUnit_Framework_TestCase {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/AssociationResponse.php b/Tests/Auth/OpenID/AssociationResponse.php
index bb37350..6902f95 100644
--- a/Tests/Auth/OpenID/AssociationResponse.php
+++ b/Tests/Auth/OpenID/AssociationResponse.php
@@ -375,4 +375,3 @@ if (!defined('Auth_OpenID_NO_MATH_SUPPORT')) {
$Tests_Auth_OpenID_AssociationResponse_other[] = new TestExtractAssociationDiffieHellman();
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/AuthRequest.php b/Tests/Auth/OpenID/AuthRequest.php
index 9f73814..02ab75d 100644
--- a/Tests/Auth/OpenID/AuthRequest.php
+++ b/Tests/Auth/OpenID/AuthRequest.php
@@ -297,4 +297,3 @@ class Tests_Auth_OpenID_AuthRequest extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/BigMath.php b/Tests/Auth/OpenID/BigMath.php
index 951c9e2..fb258d9 100644
--- a/Tests/Auth/OpenID/BigMath.php
+++ b/Tests/Auth/OpenID/BigMath.php
@@ -232,4 +232,3 @@ class Tests_Auth_OpenID_BigMath extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php
index aa12671..af357f1 100644
--- a/Tests/Auth/OpenID/Consumer.php
+++ b/Tests/Auth/OpenID/Consumer.php
@@ -2526,4 +2526,4 @@ if (!defined('Auth_OpenID_NO_MATH_SUPPORT') &&
$Tests_Auth_OpenID_Consumer_other[] = new TestOpenID2SHA256();
}
-?>
+
diff --git a/Tests/Auth/OpenID/CryptUtil.php b/Tests/Auth/OpenID/CryptUtil.php
index a4f838c..29022d2 100644
--- a/Tests/Auth/OpenID/CryptUtil.php
+++ b/Tests/Auth/OpenID/CryptUtil.php
@@ -52,4 +52,3 @@ class Tests_Auth_OpenID_CryptUtil extends PHPUnit_Framework_TestCase {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/DiffieHellman.php b/Tests/Auth/OpenID/DiffieHellman.php
index 173fc35..3336061 100644
--- a/Tests/Auth/OpenID/DiffieHellman.php
+++ b/Tests/Auth/OpenID/DiffieHellman.php
@@ -156,4 +156,4 @@ class Tests_Auth_OpenID_DiffieHellman extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/Discover_OpenID.php b/Tests/Auth/OpenID/Discover_OpenID.php
index a1d62d8..03d25dc 100644
--- a/Tests/Auth/OpenID/Discover_OpenID.php
+++ b/Tests/Auth/OpenID/Discover_OpenID.php
@@ -779,4 +779,3 @@ $Tests_Auth_OpenID_Discover_OpenID_other = array(
new Tests_Auth_OpenID_SSLSupport()
);
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/Extension.php b/Tests/Auth/OpenID/Extension.php
index 398cc42..35eb2f2 100644
--- a/Tests/Auth/OpenID/Extension.php
+++ b/Tests/Auth/OpenID/Extension.php
@@ -42,4 +42,3 @@ class Tests_Auth_OpenID_Extension extends PHPUnit_Framework_TestCase {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/HMAC.php b/Tests/Auth/OpenID/HMAC.php
index 85aa5b0..7423966 100644
--- a/Tests/Auth/OpenID/HMAC.php
+++ b/Tests/Auth/OpenID/HMAC.php
@@ -162,4 +162,4 @@ class Tests_Auth_OpenID_HMAC extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/KVForm.php b/Tests/Auth/OpenID/KVForm.php
index d9de1de..904f2c8 100644
--- a/Tests/Auth/OpenID/KVForm.php
+++ b/Tests/Auth/OpenID/KVForm.php
@@ -257,4 +257,4 @@ class Tests_Auth_OpenID_KVForm extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/MemStore.php b/Tests/Auth/OpenID/MemStore.php
index a45aae9..68a085f 100644
--- a/Tests/Auth/OpenID/MemStore.php
+++ b/Tests/Auth/OpenID/MemStore.php
@@ -173,4 +173,4 @@ class Tests_Auth_OpenID_MemStore extends Auth_OpenID_OpenIDStore {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/Message.php b/Tests/Auth/OpenID/Message.php
index 3c5896f..88706e5 100644
--- a/Tests/Auth/OpenID/Message.php
+++ b/Tests/Auth/OpenID/Message.php
@@ -1248,4 +1248,4 @@ $Tests_Auth_OpenID_Message_other = array(
new Tests_Auth_OpenID_GeneralMessageTest()
);
-?>
+
diff --git a/Tests/Auth/OpenID/Negotiation.php b/Tests/Auth/OpenID/Negotiation.php
index 52fe9fd..02628fc 100644
--- a/Tests/Auth/OpenID/Negotiation.php
+++ b/Tests/Auth/OpenID/Negotiation.php
@@ -344,4 +344,3 @@ class Tests_Auth_OpenID_Negotiation extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/Nonce.php b/Tests/Auth/OpenID/Nonce.php
index 25d9ea5..1f64948 100644
--- a/Tests/Auth/OpenID/Nonce.php
+++ b/Tests/Auth/OpenID/Nonce.php
@@ -163,4 +163,4 @@ class Tests_Auth_OpenID_Nonce_BadSplitCase extends PHPUnit_Framework_TestCase {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/OpenID_Yadis.php b/Tests/Auth/OpenID/OpenID_Yadis.php
index b16e3b8..923dfd3 100644
--- a/Tests/Auth/OpenID/OpenID_Yadis.php
+++ b/Tests/Auth/OpenID/OpenID_Yadis.php
@@ -9,7 +9,7 @@ require_once "Auth/Yadis/XRDS.php";
require_once "Auth/OpenID/Discover.php";
global $__XRDS_BOILERPLATE;
-$__XRDS_BOILERPLATE = '<?xml version="1.0" encoding="UTF-8"?>
+$__XRDS_BOILERPLATE = '<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
xmlns:openid="http://openid.net/xmlns/1.0">
@@ -226,4 +226,3 @@ class Tests_Auth_OpenID_OpenID_Yadis extends PHPUnit_Framework_TestSuite {
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/PAPE.php b/Tests/Auth/OpenID/PAPE.php
index c258e82..d71036d 100644
--- a/Tests/Auth/OpenID/PAPE.php
+++ b/Tests/Auth/OpenID/PAPE.php
@@ -241,4 +241,4 @@ class Tests_Auth_OpenID_PAPE extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/Parse.php b/Tests/Auth/OpenID/Parse.php
index e4d473f..b0e0350 100644
--- a/Tests/Auth/OpenID/Parse.php
+++ b/Tests/Auth/OpenID/Parse.php
@@ -182,4 +182,4 @@ class Tests_Auth_OpenID_Parse extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/RPVerify.php b/Tests/Auth/OpenID/RPVerify.php
index 4b5cf75..d219f7b 100644
--- a/Tests/Auth/OpenID/RPVerify.php
+++ b/Tests/Auth/OpenID/RPVerify.php
@@ -90,7 +90,7 @@ class Tests_Auth_OpenID_ExtractReturnToURLs extends PHPUnit_Framework_TestCase {
function test_noEntries()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -102,7 +102,7 @@ class Tests_Auth_OpenID_ExtractReturnToURLs extends PHPUnit_Framework_TestCase {
function test_noReturnToEntries()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -118,7 +118,7 @@ class Tests_Auth_OpenID_ExtractReturnToURLs extends PHPUnit_Framework_TestCase {
function test_oneEntry()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -134,7 +134,7 @@ class Tests_Auth_OpenID_ExtractReturnToURLs extends PHPUnit_Framework_TestCase {
function test_twoEntries()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -155,7 +155,7 @@ class Tests_Auth_OpenID_ExtractReturnToURLs extends PHPUnit_Framework_TestCase {
function test_twoEntries_withOther()
{
- $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"?>
+ $this->failUnlessXRDSHasReturnURLs('<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)"
>
@@ -294,4 +294,3 @@ class Tests_Auth_OpenID_RPVerify extends PHPUnit_Framework_TestSuite {
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/SReg.php b/Tests/Auth/OpenID/SReg.php
index 3e453b9..5546600 100644
--- a/Tests/Auth/OpenID/SReg.php
+++ b/Tests/Auth/OpenID/SReg.php
@@ -670,4 +670,3 @@ class Tests_Auth_OpenID_SReg extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/Server.php b/Tests/Auth/OpenID/Server.php
index ba2160c..bcb4f2a 100644
--- a/Tests/Auth/OpenID/Server.php
+++ b/Tests/Auth/OpenID/Server.php
@@ -2460,4 +2460,4 @@ class Tests_Auth_OpenID_Server extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index bd46e02..b51b961 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -703,4 +703,4 @@ class Tests_Auth_OpenID_StoreTest extends PHPUnit_Framework_TestSuite {
$this->addTestSuite('Tests_Auth_OpenID_MemcachedStore_Test');
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/TestUtil.php b/Tests/Auth/OpenID/TestUtil.php
index eabf3d3..28e3ca9 100644
--- a/Tests/Auth/OpenID/TestUtil.php
+++ b/Tests/Auth/OpenID/TestUtil.php
@@ -58,4 +58,3 @@ class OpenIDTestMixin extends PHPUnit_Framework_TestCase {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/TrustRoot.php b/Tests/Auth/OpenID/TrustRoot.php
index 5ba1918..3603940 100644
--- a/Tests/Auth/OpenID/TrustRoot.php
+++ b/Tests/Auth/OpenID/TrustRoot.php
@@ -169,4 +169,4 @@ class Tests_Auth_OpenID_TrustRoot extends PHPUnit_Framework_TestSuite {
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/URINorm.php b/Tests/Auth/OpenID/URINorm.php
index da94d59..b79b780 100644
--- a/Tests/Auth/OpenID/URINorm.php
+++ b/Tests/Auth/OpenID/URINorm.php
@@ -64,4 +64,3 @@ class Tests_Auth_OpenID_URINorm extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/OpenID/Util.php b/Tests/Auth/OpenID/Util.php
index e055423..ecaed79 100644
--- a/Tests/Auth/OpenID/Util.php
+++ b/Tests/Auth/OpenID/Util.php
@@ -316,4 +316,4 @@ assert not should_raise and actual == expected, case
}
}
-?>
+
diff --git a/Tests/Auth/OpenID/VerifyDisco.php b/Tests/Auth/OpenID/VerifyDisco.php
index 015e021..f18d3aa 100644
--- a/Tests/Auth/OpenID/VerifyDisco.php
+++ b/Tests/Auth/OpenID/VerifyDisco.php
@@ -420,4 +420,3 @@ $Tests_Auth_OpenID_VerifyDisco_other = array(
new Tests_openID1Fallback1_0(),
);
-?> \ No newline at end of file
diff --git a/Tests/Auth/Yadis/DiscoverData.php b/Tests/Auth/Yadis/DiscoverData.php
index 816a06b..bf02d66 100644
--- a/Tests/Auth/Yadis/DiscoverData.php
+++ b/Tests/Auth/Yadis/DiscoverData.php
@@ -150,4 +150,3 @@ function generateResult($base_url, $input_name, $id_name, $result_name, $success
return array($input_url, $result);
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/Yadis/Discover_Yadis.php b/Tests/Auth/Yadis/Discover_Yadis.php
index 6e2d38b..0ca3b2e 100644
--- a/Tests/Auth/Yadis/Discover_Yadis.php
+++ b/Tests/Auth/Yadis/Discover_Yadis.php
@@ -228,4 +228,3 @@ $Tests_Auth_Yadis_Discover_Yadis_other = array(
new Tests_Auth_Yadis_Discover_Yadis_ContentTypes()
);
-?> \ No newline at end of file
diff --git a/Tests/Auth/Yadis/ParseHTML.php b/Tests/Auth/Yadis/ParseHTML.php
index bc7574f..e3977bc 100644
--- a/Tests/Auth/Yadis/ParseHTML.php
+++ b/Tests/Auth/Yadis/ParseHTML.php
@@ -84,4 +84,3 @@ class Tests_Auth_Yadis_ParseHTML extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/Yadis/TestUtil.php b/Tests/Auth/Yadis/TestUtil.php
index 8936c0e..6c25812 100644
--- a/Tests/Auth/Yadis/TestUtil.php
+++ b/Tests/Auth/Yadis/TestUtil.php
@@ -27,4 +27,4 @@ function Tests_Auth_Yadis_readlines($name)
return Tests_Auth_Yadis_datafile($name, 'file');
}
-?>
+
diff --git a/Tests/Auth/Yadis/XRDS.php b/Tests/Auth/Yadis/XRDS.php
index 7d9048e..3bb23e4 100644
--- a/Tests/Auth/Yadis/XRDS.php
+++ b/Tests/Auth/Yadis/XRDS.php
@@ -245,4 +245,3 @@ class Tests_Auth_Yadis_XRDS extends PHPUnit_Framework_TestCase {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/Yadis/XRI.php b/Tests/Auth/Yadis/XRI.php
index 7f2b04d..220c196 100644
--- a/Tests/Auth/Yadis/XRI.php
+++ b/Tests/Auth/Yadis/XRI.php
@@ -140,4 +140,3 @@ class Tests_Auth_Yadis_XRI extends PHPUnit_Framework_TestSuite {
}
}
-?> \ No newline at end of file
diff --git a/Tests/Auth/Yadis/Yadis.php b/Tests/Auth/Yadis/Yadis.php
index 8c55558..5672a15 100644
--- a/Tests/Auth/Yadis/Yadis.php
+++ b/Tests/Auth/Yadis/Yadis.php
@@ -86,4 +86,3 @@ class Tests_Auth_Yadis_Yadis extends PHPUnit_Framework_TestSuite {
}
-?> \ No newline at end of file
diff --git a/Tests/TestDriver.php b/Tests/TestDriver.php
index 44675af..27312d2 100644
--- a/Tests/TestDriver.php
+++ b/Tests/TestDriver.php
@@ -199,4 +199,4 @@ function loadSuite($names=null)
return $result;
}
-?>
+