"O'reilly", 'c' => [ 'd' => 2, 'f' => [ 'g' => "O'reilly", ], ], ], Guard::unslash( [ 'a' => "O\'reilly", 'c' => [ 'd' => 2, 'f' => [ 'g' => "O\'reilly", ], ], ] ) ); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('A string can be validated for shell safety')] public function testIsShellSafe() : void { self::assertTrue(Guard::isShellSafe('asdf')); self::assertFalse(Guard::isShellSafe('&#;`|*?~<>^()[]{}$\\')); self::assertFalse(Guard::isShellSafe('™')); } }