summaryrefslogtreecommitdiffstats
path: root/tests/lib/Security
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 20:28:22 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 22:01:19 +0100
commit0e0db3765887930682aadc6bc8ec7df5ffd187f6 (patch)
treef11f9ebd73638273d281cb6d635ba6069edefd9f /tests/lib/Security
parent2b70c708abc667c3e3c4fd9a97626012bf1ded25 (diff)
downloadnextcloud-server-0e0db3765887930682aadc6bc8ec7df5ffd187f6.tar.gz
nextcloud-server-0e0db3765887930682aadc6bc8ec7df5ffd187f6.zip
Make OCP\Security stricter
* Add typehints * Add return types * Opcode opts from phpstorm * Made strict * Fixed tests: No need to test bogus values anymore strict typing fixes this Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Security')
-rw-r--r--tests/lib/Security/HasherTest.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/lib/Security/HasherTest.php b/tests/lib/Security/HasherTest.php
index 5f7613a823d..86d4ef6ca01 100644
--- a/tests/lib/Security/HasherTest.php
+++ b/tests/lib/Security/HasherTest.php
@@ -35,10 +35,6 @@ class HasherTest extends \Test\TestCase {
public function allHashProviders()
{
return array(
- // Bogus values
- array(null, 'asf32รคร $$a.|3', false),
- array(null, false, false),
-
// Valid SHA1 strings
array('password', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', true),
array('owncloud.com', '27a4643e43046c3569e33b68c1a4b15d31306d29', true),