Skip to content

Commit

Permalink
Release next-gen version v2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnguyenhp committed Feb 15, 2023
1 parent 2ebbf4a commit 6598ec6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions test/test_benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
$benchmark = new Benchmark();
/***************************** SIMPLE BENCHMARKING BY CI *****************************/
$benchmark->mark('code_start');
$mathFunctions = ["abs", "acos", "asin", "atan", "floor"];
$count = 10;
$mathFunctions = array("abs", "acos", "asin", "atan", "floor");
$count = 10;
for ($i = 0; $i < $count; $i++) {
foreach ($mathFunctions as $key => $function) {
$function($i);
Expand Down
10 changes: 5 additions & 5 deletions test/test_file.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use nguyenanhung\MyDebug\Manager\File;

$file = new File();
$file->setExclude(['*.zip']);
$file->setInclude(['*.log']);



$file->setExclude(array('*.zip'));
$file->setInclude(array('*.log'));

$path = __DIR__ . '/../tmp';
$path = realpath($path);

d($file->directoryScanner($path));
13 changes: 7 additions & 6 deletions test/test_logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@
use nguyenanhung\MyDebug\Logger;

// Test Content
$logPath = __DIR__ . '/../tmp';
$logSubPath = 'tests-debug-2';
$logPath = __DIR__ . '/../tmp';
$logPath = realpath($logPath);
$logSubPath = date('Y-m-d');
$logFilename = 'Log-' . date('Y-m-d') . '.log';
$name = 'Test';
$msg = 'Test Log lan 2';
$context = [
$name = 'Test';
$msg = 'Test Log lan 2';
$context = array(
'name' => 'Nguyen An Hung',
'email' => 'dev@nguyenanhung.com',
'website' => 'https://nguyenanhung.com',
];
);
// Call
$logger = new Logger();
$logger->setDebugStatus(true);
Expand Down
2 changes: 1 addition & 1 deletion test/test_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use nguyenanhung\MyDebug\Utils;

$utils = new Utils();
$str = 'Nguyễn An Hưng';
$str = 'Nguyễn An Hưng';

d($utils->getVersion());
d($utils::slugify($str));
Expand Down

0 comments on commit 6598ec6

Please sign in to comment.