From 7333dbbecd50f85c9f5ff0bf4e6630f453234a5b Mon Sep 17 00:00:00 2001 From: Gemorroj Date: Sat, 27 Jul 2024 15:18:47 +0300 Subject: [PATCH] build: hide print_r from tests --- tests/GinfoTest.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/GinfoTest.php b/tests/GinfoTest.php index a10abc45..3fde649e 100644 --- a/tests/GinfoTest.php +++ b/tests/GinfoTest.php @@ -26,7 +26,7 @@ public function testPhp(): void self::assertIsBool($php->getOpcache()->isEnabled()); self::assertIsBool($php->getFpm()->isEnabled()); - \print_r($php); + // \print_r($php); } public function testGeneral(): void @@ -35,7 +35,7 @@ public function testGeneral(): void self::assertIsString($general->getOsName()); - \print_r($general); + // \print_r($general); } public function testCpu(): void @@ -45,7 +45,7 @@ public function testCpu(): void self::markTestSkipped('Can\'t get cpu'); } else { self::assertInstanceOf(Info\Cpu::class, $cpu); - \print_r($cpu); + // \print_r($cpu); } } @@ -56,7 +56,7 @@ public function testMemory(): void self::markTestSkipped('Can\'t get memory'); } else { self::assertInstanceOf(Info\Memory::class, $memory); - \print_r($memory); + // \print_r($memory); } } @@ -67,7 +67,7 @@ public function testProcesses(): void self::markTestSkipped('Can\'t get processes'); } else { self::assertNotEmpty($processes); - \print_r($processes); + // \print_r($processes); } } @@ -78,7 +78,7 @@ public function testNetwork(): void self::markTestSkipped('Can\'t get network'); } else { self::assertNotEmpty($network); - \print_r($network); + // \print_r($network); } } @@ -89,7 +89,7 @@ public function testUsb(): void self::markTestSkipped('Can\'t get usb'); } else { self::assertIsArray($usb); - \print_r($usb); + // \print_r($usb); } } @@ -100,7 +100,7 @@ public function testPci(): void self::markTestSkipped('Can\'t get pci'); } else { self::assertNotEmpty($pci); - \print_r($pci); + // \print_r($pci); } } @@ -111,7 +111,7 @@ public function testSoundCard(): void self::markTestSkipped('Can\'t get sound card'); } else { self::assertNotEmpty($soundCard); - \print_r($soundCard); + // \print_r($soundCard); } } @@ -122,7 +122,7 @@ public function testServices(): void self::markTestSkipped('Can\'t get services (need systemd)'); } else { self::assertNotEmpty($services); - \print_r($services); + // \print_r($services); } } @@ -137,7 +137,7 @@ public function testSamba(): void self::markTestSkipped('Can\'t get samba'); } else { self::assertInstanceOf(Info\Samba::class, $samba); - \print_r($samba); + // \print_r($samba); } } } @@ -153,7 +153,7 @@ public function testUps(): void self::markTestSkipped('Can\'t get ups (need apcaccess)'); } else { self::assertInstanceOf(Info\Ups::class, $ups); - \print_r($ups); + // \print_r($ups); } } } @@ -169,7 +169,7 @@ public function testSelinux(): void self::markTestSkipped('Can\'t get selinux (need sestatus)'); } else { self::assertInstanceOf(Info\Selinux::class, $selinux); - \print_r($selinux); + // \print_r($selinux); } } } @@ -185,7 +185,7 @@ public function testBattery(): void self::markTestSkipped('Can\'t get battery info'); } else { self::assertNotEmpty($battery); - \print_r($battery); + // \print_r($battery); } } } @@ -201,7 +201,7 @@ public function testSensors(): void self::markTestSkipped('Can\'t get sensors (need hddtemp or mbmon or sensors or hwmon or thermal_zone or ipmitool or nvidia-smi or max_brightness)'); } else { self::assertNotEmpty($sensors); - \print_r($sensors); + // \print_r($sensors); } } } @@ -217,7 +217,7 @@ public function testPrinters(): void self::markTestSkipped('Can\'t get printers (need lpstat)'); } else { self::assertNotEmpty($printers); - \print_r($printers); + // \print_r($printers); } } } @@ -234,21 +234,21 @@ public function testDisk(): void self::markTestSkipped('Can\'t get drivers'); } else { self::assertNotEmpty($drivers); - \print_r($drivers); + // \print_r($drivers); } if (null === $mounts) { self::markTestSkipped('Can\'t get mounts'); } else { self::assertNotEmpty($mounts); - \print_r($mounts); + // \print_r($mounts); } if (null === $raids) { self::markTestSkipped('Can\'t get raids'); } else { self::assertIsArray($raids); - \print_r($raids); + // \print_r($raids); } } }