Skip to content

Commit

Permalink
test: Remove superfluous tests
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed May 23, 2024
1 parent bef3448 commit ef4b765
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/unit/SuperGlobalsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit ef4b765

Please sign in to comment.