From ef4b76566524230273156d974bca8a4458e8d4ce Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Thu, 23 May 2024 10:36:41 -0400 Subject: [PATCH] test: Remove superfluous tests --- tests/unit/SuperGlobalsTest.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/tests/unit/SuperGlobalsTest.php b/tests/unit/SuperGlobalsTest.php index a8da734..f27b5f0 100644 --- a/tests/unit/SuperGlobalsTest.php +++ b/tests/unit/SuperGlobalsTest.php @@ -100,30 +100,6 @@ public function it_should_get_nested_var_from_request_when_available() { unset( $_REQUEST['bork'] ); } - /** - * @test - */ - public function it_should_sanitize_int() { - $_REQUEST['bork'] = '123 '; - - $this->assertEquals( 123, SuperGlobals::get_var( 'bork', 'default' ) ); - $this->assertNotEquals( 'whee', SuperGlobals::get_var( 'bork', 'default' ) ); - - unset( $_REQUEST['bork'] ); - } - - /** - * @test - */ - public function it_should_sanitize_float() { - $_REQUEST['bork'] = '123.456 '; - - $this->assertEquals( 123.456, SuperGlobals::get_var( 'bork', 'default' ) ); - $this->assertNotEquals( 'whee', SuperGlobals::get_var( 'bork', 'default' ) ); - - unset( $_REQUEST['bork'] ); - } - /** * @test */