diff --git a/tests/lib/AutoloadModulesTest.php b/tests/lib/AutoloadModulesTest.php index add217d60fe358bc9638acfc0c40404edf83bd78..c136ea5ea6366904a7dfc59ec873e673a176da9c 100644 --- a/tests/lib/AutoloadModulesTest.php +++ b/tests/lib/AutoloadModulesTest.php @@ -18,6 +18,7 @@ class AutoloadModulesTest extends TestCase } /** + * @test * @runInSeparateProcess * @return void */ @@ -27,6 +28,7 @@ class AutoloadModulesTest extends TestCase } /** + * @test * @return void */ public function autoloaderSubstitutesNamespacedXmlSecClassesWhereNonNamespacedClassWasUsed() diff --git a/tests/lib/SimpleSAML/Auth/SimpleTest.php b/tests/lib/SimpleSAML/Auth/SimpleTest.php index 048e43aa7d19631b9b658ef3b0cd8858f4133a73..7e5799634165577e75e7d482ffd1311fe9503aa6 100644 --- a/tests/lib/SimpleSAML/Auth/SimpleTest.php +++ b/tests/lib/SimpleSAML/Auth/SimpleTest.php @@ -9,6 +9,7 @@ namespace SimpleSAML\Test\Auth; class SimpleTest extends \SimpleSAML\Test\Utils\ClearStateTestCase { /** + * @test * @return void */ public function testGetProcessedURL() diff --git a/tests/lib/SimpleSAML/DatabaseTest.php b/tests/lib/SimpleSAML/DatabaseTest.php index 5957e08d2ece6168c60379534e4a7520bf599de7..6ba5c9bf6a577c526dc6a2b23ca7cb90dccacb55 100644 --- a/tests/lib/SimpleSAML/DatabaseTest.php +++ b/tests/lib/SimpleSAML/DatabaseTest.php @@ -80,6 +80,7 @@ class DatabaseTest extends TestCase * @covers SimpleSAML\Database::generateInstanceId * @covers SimpleSAML\Database::__construct * @covers SimpleSAML\Database::connect + * @test * @return void */ public function connectionFailure() @@ -104,6 +105,7 @@ class DatabaseTest extends TestCase * @covers SimpleSAML\Database::generateInstanceId * @covers SimpleSAML\Database::__construct * @covers SimpleSAML\Database::connect + * @test * @return void */ public function instances() @@ -173,6 +175,7 @@ class DatabaseTest extends TestCase * @covers SimpleSAML\Database::__construct * @covers SimpleSAML\Database::connect * @covers SimpleSAML\Database::getSlave + * @test * @return void */ public function slaves() @@ -215,6 +218,7 @@ class DatabaseTest extends TestCase /** * @covers SimpleSAML\Database::applyPrefix + * @test * @return void */ public function prefix() @@ -232,6 +236,7 @@ class DatabaseTest extends TestCase * @covers SimpleSAML\Database::read * @covers SimpleSAML\Database::exec * @covers SimpleSAML\Database::query + * @test * @return void */ public function querying() @@ -264,6 +269,7 @@ class DatabaseTest extends TestCase /** * @covers SimpleSAML\Database::read * @covers SimpleSAML\Database::query + * @test * @return void */ public function readFailure() @@ -279,6 +285,7 @@ class DatabaseTest extends TestCase /** * @covers SimpleSAML\Database::write * @covers SimpleSAML\Database::exec + * @test * @return void */ public function noSuchTable() diff --git a/tests/lib/SimpleSAML/Store/RedisTest.php b/tests/lib/SimpleSAML/Store/RedisTest.php index 375aba6b8bfb55a48843a2a69c451f7ab21f50f1..db6f31cdd1d309b8810907714771f51130222ba9 100644 --- a/tests/lib/SimpleSAML/Store/RedisTest.php +++ b/tests/lib/SimpleSAML/Store/RedisTest.php @@ -98,6 +98,7 @@ class RedisTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance * @covers \SimpleSAML\Store\Redis::__construct + * @test * @return void */ public function testRedisInstance() @@ -119,6 +120,7 @@ class RedisTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance * @covers \SimpleSAML\Store\Redis::__construct + * @test * @return void */ public function testRedisInstanceWithPassword() @@ -141,6 +143,7 @@ class RedisTest extends TestCase /** * @covers \SimpleSAML\Store\Redis::get * @covers \SimpleSAML\Store\Redis::set + * @test * @return void */ public function testInsertData() @@ -158,6 +161,7 @@ class RedisTest extends TestCase /** * @covers \SimpleSAML\Store\Redis::get * @covers \SimpleSAML\Store\Redis::set + * @test * @return void */ public function testInsertExpiringData() @@ -174,6 +178,7 @@ class RedisTest extends TestCase /** * @covers \SimpleSAML\Store\Redis::get + * @test * @return void */ public function testGetEmptyData() @@ -187,6 +192,7 @@ class RedisTest extends TestCase /** * @covers \SimpleSAML\Store\Redis::get * @covers \SimpleSAML\Store\Redis::set + * @test * @return void */ public function testOverwriteData() @@ -207,6 +213,7 @@ class RedisTest extends TestCase * @covers \SimpleSAML\Store\Redis::get * @covers \SimpleSAML\Store\Redis::set * @covers \SimpleSAML\Store\Redis::delete + * @test * @return void */ public function testDeleteData() diff --git a/tests/lib/SimpleSAML/Store/SQLTest.php b/tests/lib/SimpleSAML/Store/SQLTest.php index bc864dc783af602887ff170298b107e4c81558e6..bff22681a521683e309f737ff01830f7e9d7c937 100644 --- a/tests/lib/SimpleSAML/Store/SQLTest.php +++ b/tests/lib/SimpleSAML/Store/SQLTest.php @@ -33,6 +33,7 @@ class SQLTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance * @covers \SimpleSAML\Store\SQL::__construct + * @test * @return void */ public function SQLInstance() @@ -46,6 +47,7 @@ class SQLTest extends TestCase /** * @covers \SimpleSAML\Store\SQL::initTableVersionTable * @covers \SimpleSAML\Store\SQL::initKVTable + * @test * @return void */ public function kvstoreTableVersion() @@ -61,6 +63,7 @@ class SQLTest extends TestCase /** * @covers \SimpleSAML\Store\SQL::getTableVersion + * @test * @return void */ public function newTableVersion() @@ -77,6 +80,7 @@ class SQLTest extends TestCase /** * @covers \SimpleSAML\Store\SQL::setTableVersion * @covers \SimpleSAML\Store\SQL::insertOrUpdate + * @test * @return void */ public function testSetTableVersion() @@ -93,6 +97,7 @@ class SQLTest extends TestCase /** * @covers \SimpleSAML\Store\SQL::get + * @test * @return void */ public function testGetEmptyData() @@ -110,6 +115,7 @@ class SQLTest extends TestCase * @covers \SimpleSAML\Store\SQL::get * @covers \SimpleSAML\Store\SQL::set * @covers \SimpleSAML\Store\SQL::insertOrUpdate + * @test * @return void */ public function testInsertData() @@ -128,6 +134,7 @@ class SQLTest extends TestCase * @covers \SimpleSAML\Store\SQL::get * @covers \SimpleSAML\Store\SQL::set * @covers \SimpleSAML\Store\SQL::insertOrUpdate + * @test * @return void */ public function testOverwriteData() @@ -148,6 +155,7 @@ class SQLTest extends TestCase * @covers \SimpleSAML\Store\SQL::set * @covers \SimpleSAML\Store\SQL::insertOrUpdate * @covers \SimpleSAML\Store\SQL::delete + * @test * @return void */ public function testDeleteData() @@ -168,6 +176,7 @@ class SQLTest extends TestCase * @covers \SimpleSAML\Store\SQL::set * @covers \SimpleSAML\Store\SQL::insertOrUpdate * @covers \SimpleSAML\Store\SQL::delete + * @test * @return void */ public function testVeryLongKey() diff --git a/tests/lib/SimpleSAML/StoreTest.php b/tests/lib/SimpleSAML/StoreTest.php index 7704fa210a25d2290cf7c364d4331cb302199401..756a53382cf0785d00d99395c28f3cacc1729341 100644 --- a/tests/lib/SimpleSAML/StoreTest.php +++ b/tests/lib/SimpleSAML/StoreTest.php @@ -21,6 +21,7 @@ class StoreTest extends TestCase { /** * @covers \SimpleSAML\Store::getInstance + * @test * @return void */ public function defaultStore() @@ -36,6 +37,7 @@ class StoreTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance + * @test * @return void */ public function phpSessionStore() @@ -51,6 +53,7 @@ class StoreTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance + * @test * @return void */ public function memcacheStore() @@ -67,6 +70,7 @@ class StoreTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance + * @test * @return void */ public function sqlStore() @@ -85,6 +89,7 @@ class StoreTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance + * @test * @return void */ public function pathStore() @@ -103,6 +108,7 @@ class StoreTest extends TestCase /** * @covers \SimpleSAML\Store::getInstance + * @test * @return void */ public function notFoundStoreException() diff --git a/tests/lib/SimpleSAML/Utils/SystemTest.php b/tests/lib/SimpleSAML/Utils/SystemTest.php index 2b9920d2614077292ff6d75224ad88f0fb36e78c..9f73b88fd45a2804a87902c4abca85d587b3c817 100644 --- a/tests/lib/SimpleSAML/Utils/SystemTest.php +++ b/tests/lib/SimpleSAML/Utils/SystemTest.php @@ -36,6 +36,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::getOS + * @test * @return void */ public function testGetOSBasic() @@ -48,6 +49,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::resolvePath + * @test * @return void */ public function testResolvePathRemoveTrailingSlashes() @@ -64,6 +66,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::resolvePath + * @test * @return void */ public function testResolvePathPreferAbsolutePathToBase() @@ -80,6 +83,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::resolvePath + * @test * @return void */ public function testResolvePathCurDirPath() @@ -96,6 +100,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::resolvePath + * @test * @return void */ public function testResolvePathParentPath() @@ -112,6 +117,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::resolvePath + * @test * @return void */ public function testResolvePathAllowsStreamWrappers() @@ -128,6 +134,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::resolvePath + * @test * @return void */ public function testResolvePathAllowsAwsS3StreamWrappers() @@ -144,6 +151,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::writeFile + * @test * @deprecated Test becomes obsolete as soon as the codebase is fully type hinted * @return void */ @@ -157,6 +165,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::writeFile + * @test * @return void */ public function testWriteFileBasic() @@ -176,6 +185,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::writeFile + * @test * @return void */ public function testWriteFileContents() @@ -199,6 +209,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::writeFile + * @test * @return void */ public function testWriteFileMode() @@ -222,6 +233,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::getTempDir + * @test * @return void */ public function testGetTempDirBasic() @@ -241,6 +253,7 @@ class SystemTest extends TestCase /** * @covers \SimpleSAML\Utils\System::getTempDir + * @test * @return void */ public function testGetTempDirNonExistant() @@ -261,6 +274,7 @@ class SystemTest extends TestCase /** * @requires OS Linux * @covers \SimpleSAML\Utils\System::getTempDir + * @test * @return void */ public function testGetTempDirBadOwner() diff --git a/tests/lib/SimpleSAML/Utils/XMLTest.php b/tests/lib/SimpleSAML/Utils/XMLTest.php index db2953984856e36aed9fe80fda0b2f9f1fb188c4..938f4ef38587fc8fe4751e8876ec5457621d2211 100644 --- a/tests/lib/SimpleSAML/Utils/XMLTest.php +++ b/tests/lib/SimpleSAML/Utils/XMLTest.php @@ -14,6 +14,7 @@ class XMLTest extends TestCase { /** * @covers \SimpleSAML\Utils\XML::isDOMNodeOfType + * @test * @return void */ public function testIsDomNodeOfTypeBasic() @@ -30,6 +31,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::isDOMNodeOfType + * @test * @return void */ public function testIsDomNodeOfTypeMissingNamespace() @@ -45,6 +47,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::isDOMNodeOfType + * @test * @return void */ public function testIsDomNodeOfTypeEmpty() @@ -61,6 +64,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::isDOMNodeOfType + * @test * @return void */ public function testIsDomNodeOfTypeShortcut() @@ -78,6 +82,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::isDOMNodeOfType + * @test * @return void */ public function testIsDomNodeOfTypeIncorrectName() @@ -95,6 +100,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::isDOMNodeOfType + * @test * @return void */ public function testIsDomNodeOfTypeIncorrectNamespace() @@ -112,6 +118,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::getDOMText + * @test * @return void */ public function testGetDomTextBasic() @@ -130,6 +137,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::getDOMText + * @test * @return void */ public function testGetDomTextMulti() @@ -150,6 +158,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::getDOMText + * @test * @return void */ public function testGetDomTextIncorrectType() @@ -165,6 +174,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::getDOMChildren + * @test * @return void */ public function testGetDomChildrenBasic() @@ -184,6 +194,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::getDOMChildren + * @test * @return void */ public function testGetDomChildrenIncorrectType() @@ -202,6 +213,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::getDOMChildren + * @test * @return void */ public function testGetDomChildrenIncorrectName() @@ -221,6 +233,7 @@ class XMLTest extends TestCase /** * @covers \SimpleSAML\Utils\XML::formatDOMElement + * @test * @return void */ public function testFormatDomElementBasic() @@ -244,6 +257,7 @@ NOWDOC; /** * @covers \SimpleSAML\Utils\XML::formatDOMElement + * @test * @return void */ public function testFormatDomElementNested() @@ -271,6 +285,7 @@ NOWDOC; /** * @covers \SimpleSAML\Utils\XML::formatDOMElement + * @test * @return void */ public function testFormatDomElementIndentBase() @@ -299,6 +314,7 @@ HEREDOC; /** * @covers \SimpleSAML\Utils\XML::formatDOMElement + * @test * @return void */ public function testFormatDomElementTextAndChild() @@ -323,6 +339,7 @@ HEREDOC; /** * @covers \SimpleSAML\Utils\XML::formatXMLString + * @test * @return void */ public function testFormatXmlStringBasic() @@ -342,6 +359,7 @@ NOWDOC; /** * @covers \SimpleSAML\Utils\XML::formatXMLString + * @test * @return void */ public function testFormatXmlStringMalformedXml() @@ -355,6 +373,7 @@ NOWDOC; /** * @covers \SimpleSAML\Utils\XML::isValid + * @test * @return void */ public function testIsValidMalformedXml() @@ -370,6 +389,7 @@ NOWDOC; /** * @covers \SimpleSAML\Utils\XML::isValid + * @test * @return void */ public function testIsValidMetadata() diff --git a/tests/lib/SimpleSAML/XML/ErrorsTest.php b/tests/lib/SimpleSAML/XML/ErrorsTest.php index 824f14a5a5457e378a7308c42bcbc91a5206e198..c671a23e1190c23dff05db877d3fd284eec1d733 100644 --- a/tests/lib/SimpleSAML/XML/ErrorsTest.php +++ b/tests/lib/SimpleSAML/XML/ErrorsTest.php @@ -20,6 +20,7 @@ class ErrorsTest extends TestCase * @covers \SimpleSAML\XML\Errors::begin * @covers \SimpleSAML\XML\Errors::addErrors * @covers \SimpleSAML\XML\Errors::end + * @test * @return void */ public function loggingErrors() @@ -40,6 +41,7 @@ class ErrorsTest extends TestCase /** * @covers \SimpleSAML\XML\Errors::formatError * @covers \SimpleSAML\XML\Errors::formatErrors + * @test * @return void */ public function formatErrors() diff --git a/tests/lib/SimpleSAML/XML/ParserTest.php b/tests/lib/SimpleSAML/XML/ParserTest.php index ede4800f63ec0d5c2393b1c7cde2ca0f7307d92a..35bc70c41bdfee889c9c8fafc0b5a0988bf5ffc0 100644 --- a/tests/lib/SimpleSAML/XML/ParserTest.php +++ b/tests/lib/SimpleSAML/XML/ParserTest.php @@ -38,6 +38,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValue * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getValue() @@ -53,6 +54,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValue * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getEmptyValue() @@ -68,6 +70,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValue * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getValueException() @@ -80,6 +83,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValueDefault * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getDefaultValue() @@ -95,6 +99,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValueAlternatives * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getValueAlternatives() @@ -117,6 +122,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValueAlternatives * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getEmptyValueAlternatives() @@ -139,6 +145,7 @@ XML; /** * @covers \SimpleSAML\XML\Parser::getValueAlternatives * @covers \SimpleSAML\XML\Parser::__construct + * @test * @return void */ public function getValueAlternativesException() diff --git a/tests/lib/SimpleSAML/XML/Shib13/AuthnResponseTest.php b/tests/lib/SimpleSAML/XML/Shib13/AuthnResponseTest.php index 6a5ba0f53486e07af0860ed2788902ae9ce07746..1bc2c4af9fe909c22c90e70388829bdefcff2b10 100644 --- a/tests/lib/SimpleSAML/XML/Shib13/AuthnResponseTest.php +++ b/tests/lib/SimpleSAML/XML/Shib13/AuthnResponseTest.php @@ -67,6 +67,7 @@ XML; /** * @covers \SimpleSAML\XML\Shib13\AuthnResponse::setXML + * @test * @return void */ public function setXML() @@ -80,6 +81,7 @@ XML; * @covers \SimpleSAML\XML\Shib13\AuthnResponse::doXPathQuery * @covers \SimpleSAML\XML\Shib13\AuthnResponse::getIssuer * @covers \SimpleSAML\XML\Shib13\AuthnResponse::setXML + * @test * @return void */ public function getIssuer() @@ -96,6 +98,7 @@ XML; /** * @covers \SimpleSAML\XML\Shib13\AuthnResponse::getIssuer * @covers \SimpleSAML\XML\Shib13\AuthnResponse::setXML + * @test * @return void */ public function getIssuerException() @@ -111,6 +114,7 @@ XML; /** * @covers \SimpleSAML\XML\Shib13\AuthnResponse::getNameID * @covers \SimpleSAML\XML\Shib13\AuthnResponse::setXML + * @test * @return void */ public function getNameID() diff --git a/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php b/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php index fc89f7c78e6221294b0064db12f92b3f49a2d138..29549d28370fbc4c73e75cd5fa93ab92e6a71674 100644 --- a/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php +++ b/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php @@ -187,6 +187,7 @@ class SPTest extends ClearStateTestCase /** * Test generating an AuthnRequest + * @test * @return void */ public function testAuthnRequest() @@ -212,6 +213,7 @@ class SPTest extends ClearStateTestCase /** * Test setting a Subject + * @test * @return void */ public function testNameID() @@ -244,6 +246,7 @@ class SPTest extends ClearStateTestCase /** * Test setting an AuthnConextClassRef + * @test * @return void */ public function testAuthnContextClassRef() @@ -273,6 +276,7 @@ class SPTest extends ClearStateTestCase /** * Test setting ForcedAuthn + * @test * @return void */ public function testForcedAuthn()