Skip to content

Commit

Permalink
added Conf functions
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Dec 26, 2023
1 parent a37ab4c commit 8a97fc3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/ConfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

final class ConfTest extends TestCase
{
public function test_get_memory_limit()
public function test_get_memory_limit_128M()
{
ini_set('memory_limit', '128M');

Expand All @@ -14,4 +14,14 @@ public function test_get_memory_limit()
$this->assertEquals(131072, $memLimit);
$this->assertEquals('128.00 MB', kilobytes_to_human_readable($memLimit));
}

public function test_get_memory_limit_64M()
{
ini_set('memory_limit', '64M');

$memLimit = get_memory_limit();

$this->assertEquals(65536, $memLimit);
$this->assertEquals('64.00 MB', kilobytes_to_human_readable($memLimit));
}
}

0 comments on commit 8a97fc3

Please sign in to comment.