diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-10-28 07:37:44 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-10-28 08:06:38 +0100 |
commit | cd11bd304daebd23b42566a1bbc8ec3a543e3c8d (patch) | |
tree | 7cecc59079b6398380332b26fcadfc007aa6d0de /Tests/Core/Util/StringUtilsTest.php | |
parent | c0ea4df9110557a2453b434d979d1c6d90d998c2 (diff) | |
download | symfony-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-x | Tests/Core/Util/StringUtilsTest.php | 23 |
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')); + } +} |