Browse files

more tests

  • Loading branch information...
1 parent 81f0832 commit e14a82b4376cdbd4e026c7d9caedcd4cc38a46ad Imre Tóth committed Jan 14, 2014
Showing with 6 additions and 6 deletions.
  1. +1 −0 composer.json
  2. +5 −6 tests/InfoToken/Functional/InfoTokenAnalyticsAndTest.php
View
1 composer.json
@@ -20,6 +20,7 @@
},
"require-dev": {
+ "symfony/stopwatch": "dev-master",
"phpunit/phpunit": "3.7.*"
},
View
11 tests/InfoToken/Functional/InfoTokenAnalyticsAndTest.php
@@ -25,10 +25,10 @@ public function testCreate(){
$stopwatch = new Stopwatch();
-// $events = array();
-// $eventSections = array();
-// $tstCnt = 0;
-//
+ $events = array();
+ $eventSections = array();
+ $tstCnt = 0;
+
// $c = 1009;
// $values = array();
// for ($i=0;$i<$c;$i++)
@@ -63,7 +63,7 @@ public function testCreate(){
// $stopwatch->stopSection('getMemecached');
// $time = microtime()-$start;
// echo "memcached get: $time\n";
-//
+
for($testNumber = 0; $testNumber <= 1000 ; $testNumber+=100 )
{
for($measurementTimeShift = 0; $measurementTimeShift <= self::DEF_INTERVAL; $measurementTimeShift++ ){
@@ -91,7 +91,6 @@ public function testCreate(){
$stopwatch->openSection($this->checkEventSection($eventSections, 'encrypt'));
$stopwatch->start($encryptTimeId);
$hash = $hasher->encrypt(array($testNumber,$testNumber+1));
-// $hash = $hasher->encrypt($fakedata);
$events[$encryptTimeId] = $stopwatch->stop($encryptTimeId);
$stopwatch->stopSection('encrypt');

0 comments on commit e14a82b

Please sign in to comment.