diff --git a/src/Lens/Traits/RuntimeLens.php b/src/Lens/Traits/RuntimeLens.php index 11df9f9..f4fa198 100644 --- a/src/Lens/Traits/RuntimeLens.php +++ b/src/Lens/Traits/RuntimeLens.php @@ -26,6 +26,20 @@ private function appCaller($results, $functions) } } + private function getIniValues($results) + { + $labels = [ + "post_max_size", + "upload_max_filesize", + ]; + foreach ($labels as $label) { + $results->add( + $label, + ini_get($label) + ); + } + } + public function getRuntimeConfigs() { $results = new ResultLens(); @@ -33,6 +47,7 @@ public function getRuntimeConfigs() "PHP Version", phpversion() ); + $this->getIniValues($results); $results->add( "Current Directory", getcwd() diff --git a/tests/ConsistencyTest.php b/tests/ConsistencyTest.php index 2b07d71..9fae2d9 100644 --- a/tests/ConsistencyTest.php +++ b/tests/ConsistencyTest.php @@ -47,7 +47,7 @@ public function test_runtimeconfig_array() $l = new LaraLens(); $a = $l->getRuntimeConfigs(); $this->assertIsArray($a->toArray()); - $this->assertCount(20, $a->toArray()); + $this->assertCount(22, $a->toArray()); } /** @test */ public function test_database_array()