svn: /pear2/Pyrus/trunk/tests/DER/ objectidentifier.phpt
| From: | Helgi Þormar Þorbjörnsson | Date: | Sun, 28 Feb 2010 16:54:38 +0000 |
| Subject: | svn: /pear2/Pyrus/trunk/tests/DER/ objectidentifier.phpt | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9219@lists.php.net to get a copy of this message | ||
dufuz Sun, 28 Feb 2010 16:54:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295585
Log:
Improve the test to include delimiters and normal chars
Changed paths:
U pear2/Pyrus/trunk/tests/DER/objectidentifier.phpt
Modified: pear2/Pyrus/trunk/tests/DER/objectidentifier.phpt
===================================================================
--- pear2/Pyrus/trunk/tests/DER/objectidentifier.phpt 2010-02-28 16:54:16 UTC (rev 295584)
+++ pear2/Pyrus/trunk/tests/DER/objectidentifier.phpt 2010-02-28 16:54:38 UTC (rev 295585)
@@ -15,8 +15,8 @@
// Test by running without serialize (or else we do not catch the exception in the objectIdentifier
call)
try {
- // RSA Object Identifier test with data input missing delimiters
- $der->objectIdentifier('12840113549');
+ // RSA Object Identifier test with data input with invalid data between delimiters
+ $der->objectIdentifier('128.a40113.549');
} catch (pear2\Pyrus\DER\Exception $e) {
$test->assertEquals('Object Identifier must be a period-delimited string of
numbers', $e->getMessage(), 'error');
}