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