Skip to content

Commit

Permalink
build: hide print_r from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Jul 27, 2024
1 parent 36df9cc commit 7333dbb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/GinfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +35,7 @@ public function testGeneral(): void

self::assertIsString($general->getOsName());

\print_r($general);
// \print_r($general);
}

public function testCpu(): void
Expand All @@ -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);
}
}

Expand All @@ -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);
}
}

Expand All @@ -67,7 +67,7 @@ public function testProcesses(): void
self::markTestSkipped('Can\'t get processes');
} else {
self::assertNotEmpty($processes);
\print_r($processes);
// \print_r($processes);
}
}

Expand All @@ -78,7 +78,7 @@ public function testNetwork(): void
self::markTestSkipped('Can\'t get network');
} else {
self::assertNotEmpty($network);
\print_r($network);
// \print_r($network);
}
}

Expand All @@ -89,7 +89,7 @@ public function testUsb(): void
self::markTestSkipped('Can\'t get usb');
} else {
self::assertIsArray($usb);
\print_r($usb);
// \print_r($usb);
}
}

Expand All @@ -100,7 +100,7 @@ public function testPci(): void
self::markTestSkipped('Can\'t get pci');
} else {
self::assertNotEmpty($pci);
\print_r($pci);
// \print_r($pci);
}
}

Expand All @@ -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);
}
}

Expand All @@ -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);
}
}

Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand All @@ -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);
}
}
}

0 comments on commit 7333dbb

Please sign in to comment.