Skip to content
Snippets Groups Projects
Commit 1074a9e2 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix MissingParamType

parent 73336e6c
Branches
Tags
No related merge requests found
...@@ -6,8 +6,8 @@ require_once(__DIR__.'/../../../SigningTestCase.php'); ...@@ -6,8 +6,8 @@ require_once(__DIR__.'/../../../SigningTestCase.php');
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use RobRichards\XMLSecLibs\XMLSecurityDSig; use RobRichards\XMLSecLibs\XMLSecurityDSig;
use \SimpleSAML\XML\Signer; use SimpleSAML\XML\Signer;
use \SimpleSAML\Metadata\SAMLParser; use SimpleSAML\Metadata\SAMLParser;
/** /**
* Test SAML parsing * Test SAML parsing
...@@ -173,6 +173,8 @@ XML ...@@ -173,6 +173,8 @@ XML
/** /**
* @param string $algo
* @param string $expected_fingerprint
* @return void * @return void
*/ */
public function _testValidateFingerprint($algo, $expected_fingerprint) public function _testValidateFingerprint($algo, $expected_fingerprint)
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace SimpleSAML\Test\Store; namespace SimpleSAML\Test\Store;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use \SimpleSAML\Configuration; use SimpleSAML\Configuration;
use \SimpleSAML\Store; use SimpleSAML\Store;
/** /**
* Tests for the Redis store. * Tests for the Redis store.
...@@ -52,7 +52,8 @@ class RedisTest extends TestCase ...@@ -52,7 +52,8 @@ class RedisTest extends TestCase
/** /**
* @return \Predis\Client * @param string $key
* @return \Predis\Client
*/ */
public function getMocked($key) public function getMocked($key)
{ {
...@@ -61,6 +62,8 @@ class RedisTest extends TestCase ...@@ -61,6 +62,8 @@ class RedisTest extends TestCase
/** /**
* @param string $key
* @param mixed $value
* @return void * @return void
*/ */
public function setMocked($key, $value) public function setMocked($key, $value)
...@@ -70,6 +73,9 @@ class RedisTest extends TestCase ...@@ -70,6 +73,9 @@ class RedisTest extends TestCase
/** /**
* @param string $key
* @param int $expire
* @param mixed $value
* @return void * @return void
*/ */
public function setexMocked($key, $expire, $value) public function setexMocked($key, $expire, $value)
...@@ -80,6 +86,7 @@ class RedisTest extends TestCase ...@@ -80,6 +86,7 @@ class RedisTest extends TestCase
/** /**
* @param string $key
* @return void * @return void
*/ */
public function delMocked($key) public function delMocked($key)
...@@ -220,6 +227,8 @@ class RedisTest extends TestCase ...@@ -220,6 +227,8 @@ class RedisTest extends TestCase
/** /**
* @param \SimpleSAML\Configuration|\SimpleSAML\Store $service
* @param string $className
* @return void * @return void
*/ */
protected function clearInstance($service, $className) protected function clearInstance($service, $className)
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace SimpleSAML\Test\Store; namespace SimpleSAML\Test\Store;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use \SimpleSAML\Configuration; use SimpleSAML\Configuration;
use \SimpleSAML\Store; use SimpleSAML\Store;
/** /**
* Tests for the SQL store. * Tests for the SQL store.
...@@ -207,6 +207,8 @@ class SQLTest extends TestCase ...@@ -207,6 +207,8 @@ class SQLTest extends TestCase
/** /**
* @param \SimpleSAML\Configuration|\SimpleSAML\Store $service
* @param string $className
* @return void * @return void
*/ */
protected function clearInstance($service, $className) protected function clearInstance($service, $className)
......
...@@ -138,6 +138,8 @@ class StoreTest extends TestCase ...@@ -138,6 +138,8 @@ class StoreTest extends TestCase
/** /**
* @param \SimpleSAML\Configuration|\SimpleSAML\Store $service
* @param string $className
* @return void * @return void
*/ */
protected function clearInstance($service, $className) protected function clearInstance($service, $className)
......
...@@ -63,6 +63,7 @@ class EMailTestCase extends ClearStateTestCase ...@@ -63,6 +63,7 @@ class EMailTestCase extends ClearStateTestCase
/** /**
* Test that the data given is visible in the resulting mail * Test that the data given is visible in the resulting mail
* @dataProvider mailTemplates * @dataProvider mailTemplates
* @param string $template
* @return void * @return void
*/ */
public function testMailContents($template) public function testMailContents($template)
......
...@@ -296,6 +296,7 @@ class SystemTest extends TestCase ...@@ -296,6 +296,7 @@ class SystemTest extends TestCase
/** /**
* @param string $directory
* @return \SimpleSAML\Configuration * @return \SimpleSAML\Configuration
*/ */
private function setConfigurationTempDir($directory) private function setConfigurationTempDir($directory)
...@@ -309,9 +310,11 @@ class SystemTest extends TestCase ...@@ -309,9 +310,11 @@ class SystemTest extends TestCase
/** /**
* @param \SimpleSAML\Configuration $service
* @param string $className
* @return void * @return void
*/ */
protected function clearInstance($service, $className) protected function clearInstance(Configuration $service, $className)
{ {
$reflectedClass = new \ReflectionClass($className); $reflectedClass = new \ReflectionClass($className);
$reflectedInstance = $reflectedClass->getProperty('instance'); $reflectedInstance = $reflectedClass->getProperty('instance');
......
...@@ -5,9 +5,9 @@ namespace SimpleSAML\Test\XML; ...@@ -5,9 +5,9 @@ namespace SimpleSAML\Test\XML;
require_once(__DIR__.'/../../../SigningTestCase.php'); require_once(__DIR__.'/../../../SigningTestCase.php');
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use \SimpleSAML\Configuration; use SimpleSAML\Configuration;
use \SimpleSAML\Test\SigningTestCase; use SimpleSAML\Test\SigningTestCase;
use \SimpleSAML\XML\Signer; use SimpleSAML\XML\Signer;
use \org\bovigo\vfs\vfsStream; use \org\bovigo\vfs\vfsStream;
...@@ -96,6 +96,7 @@ NOWDOC; ...@@ -96,6 +96,7 @@ NOWDOC;
/** /**
* @param string $certificate
* @return string * @return string
*/ */
private static function getCertificateValue($certificate) private static function getCertificateValue($certificate)
...@@ -187,9 +188,12 @@ NOWDOC; ...@@ -187,9 +188,12 @@ NOWDOC;
/** /**
* @param \SimpleSAML\Configuration $service
* @param string $className
* @param mixed|null $value
* @return void * @return void
*/ */
protected function clearInstance($service, $className, $value = null) protected function clearInstance(Configuration $service, $className, $value = null)
{ {
$reflectedClass = new \ReflectionClass($className); $reflectedClass = new \ReflectionClass($className);
$reflectedInstance = $reflectedClass->getProperty('instance'); $reflectedInstance = $reflectedClass->getProperty('instance');
......
...@@ -20,9 +20,10 @@ class ExitTestException extends \Exception ...@@ -20,9 +20,10 @@ class ExitTestException extends \Exception
/** /**
* @param array $testResult
* @return void * @return void
*/ */
public function __construct($testResult) public function __construct(array $testResult)
{ {
parent::__construct("ExitTestException", 0, null); parent::__construct("ExitTestException", 0, null);
$this->testResult = $testResult; $this->testResult = $testResult;
...@@ -47,6 +48,8 @@ class ExitTestException extends \Exception ...@@ -47,6 +48,8 @@ class ExitTestException extends \Exception
class SPTester extends \SimpleSAML\Module\saml\Auth\Source\SP class SPTester extends \SimpleSAML\Module\saml\Auth\Source\SP
{ {
/** /**
* @param array $info
* @param array $config
* @return void * @return void
*/ */
public function __construct($info, $config) public function __construct($info, $config)
......
...@@ -55,9 +55,10 @@ class IndexTest extends TestCase ...@@ -55,9 +55,10 @@ class IndexTest extends TestCase
/** /**
* @param array $config
* @return void * @return void
*/ */
protected function updateConfig($config) protected function updateConfig(array $config)
{ {
@unlink($this->shared_file); @unlink($this->shared_file);
$config = "<?php\n\$config = ".var_export($config, true).";\n"; $config = "<?php\n\$config = ".var_export($config, true).";\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment