summaryrefslogtreecommitdiffstats
path: root/Tests/Core/Util/StringUtilsTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-10-28 07:37:44 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2012-10-28 08:06:38 +0100
commitcd11bd304daebd23b42566a1bbc8ec3a543e3c8d (patch)
tree7cecc59079b6398380332b26fcadfc007aa6d0de /Tests/Core/Util/StringUtilsTest.php
parentc0ea4df9110557a2453b434d979d1c6d90d998c2 (diff)
downloadsymfony-security-cd11bd304daebd23b42566a1bbc8ec3a543e3c8d.zip
symfony-security-cd11bd304daebd23b42566a1bbc8ec3a543e3c8d.tar.gz
symfony-security-cd11bd304daebd23b42566a1bbc8ec3a543e3c8d.tar.bz2
fixed tests when OpenSsl is not enabled in PHP, renamed a missnamed test, added missing license doc blocks
Diffstat (limited to 'Tests/Core/Util/StringUtilsTest.php')
-rwxr-xr-xTests/Core/Util/StringUtilsTest.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/Core/Util/StringUtilsTest.php b/Tests/Core/Util/StringUtilsTest.php
new file mode 100755
index 0000000..aac4139
--- /dev/null
+++ b/Tests/Core/Util/StringUtilsTest.php
@@ -0,0 +1,23 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\Security\Tests\Core\Util;
+
+use Symfony\Component\Security\Core\Util\StringUtils;
+
+class StringUtilsTest extends \PHPUnit_Framework_TestCase
+{
+ public function testEquals()
+ {
+ $this->assertTrue(StringUtils::equals('password', 'password'));
+ $this->assertFalse(StringUtils::equals('password', 'foo'));
+ }
+}