Skip to content

Commit

Permalink
chore: add return type for test
Browse files Browse the repository at this point in the history
  • Loading branch information
kocoten1992 committed Aug 11, 2023
1 parent 07196a3 commit da47e55
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/BashCharEscapeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class BashCharEscapeTest extends TestCase
{
public function test_bash_char_escape()
public function test_bash_char_escape(): void
{
$this->assertEquals('\\\'\\\\\\}\\\'', BashCharEscape::escape('}', '\\', '\\\\\\', "'"));

Expand Down
2 changes: 1 addition & 1 deletion tests/CLIUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class CLIUtilTest extends TestCase
{
public function test_kill_process_tree()
public function test_kill_process_tree(): void
{
$pid = $this->helper_fork();

Expand Down
2 changes: 1 addition & 1 deletion tests/CurlCharEscapeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class CurlCharEscapeTest extends TestCase
{
public function test_bash_char_escape()
public function test_bash_char_escape(): void
{
$this->assertEquals('\\?', CurlCharEscape::escape('?', '\\', '\\\\\\'));

Expand Down
4 changes: 2 additions & 2 deletions tests/EncodeUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class EncodeUtilTest extends TestCase
{
public function test_base64_encode_decode_url()
public function test_base64_encode_decode_url(): void
{
$string = bin2hex(openssl_random_pseudo_bytes(rand(100, 200)));

Expand All @@ -21,7 +21,7 @@ public function test_base64_encode_decode_url()
$this->assertEquals($string, $decoded_str);
}

public function test_gzip_file()
public function test_gzip_file(): void
{
$faker = Faker\Factory::create();

Expand Down
8 changes: 4 additions & 4 deletions tests/StrUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class StrUtilTest extends TestCase
{
public function test_to_searchable_phrases()
public function test_to_searchable_phrases(): void
{
$this->assertEquals(
StrUtil::toSearchablePhrases('léon'),
Expand Down Expand Up @@ -42,7 +42,7 @@ public function test_to_searchable_phrases()
);
}

public function test_replace_once()
public function test_replace_once(): void
{
// case 0
// characters between key must be distinct
Expand Down Expand Up @@ -126,7 +126,7 @@ public function test_replace_once()
);
}

public function test_replace_once_index()
public function test_replace_once_index(): void
{
// case 0
// empty search
Expand Down Expand Up @@ -202,7 +202,7 @@ public function test_replace_once_index()
);
}

public function test_question_mark_to_sql_parameterized_placeholder()
public function test_question_mark_to_sql_parameterized_placeholder(): void
{
// empty string should return the same
$this->assertEquals(
Expand Down

0 comments on commit da47e55

Please sign in to comment.