diff options
| author | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-08-31 18:04:21 +0300 | 
|---|---|---|
| committer | mamouneyya <mamoun.diraneyya@gmail.com> | 2010-08-31 18:04:21 +0300 | 
| commit | 0b6664e8f9d19df025739bc4a0cf1821563d6b3d (patch) | |
| tree | 5b1de2331d4a9d0eb8d97bbb74be6d794d6260a1 /modules/gallery/tests/Kohana_Exception_Test.php | |
| parent | 0a128bab0a788288c5291491a68bd1c9ab432825 (diff) | |
| parent | 23d59dec7240dfa4bffe9d88f46a848e76ce0134 (diff) | |
Merge remote branch 'gallery3/master'
Diffstat (limited to 'modules/gallery/tests/Kohana_Exception_Test.php')
| -rw-r--r-- | modules/gallery/tests/Kohana_Exception_Test.php | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/modules/gallery/tests/Kohana_Exception_Test.php b/modules/gallery/tests/Kohana_Exception_Test.php index 48bc5184..df7cf9ff 100644 --- a/modules/gallery/tests/Kohana_Exception_Test.php +++ b/modules/gallery/tests/Kohana_Exception_Test.php @@ -37,22 +37,22 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {    public function sanitize_for_dump_match_key_test() {      $this->assert_equal("removed for display", -        Kohana_Exception::_sanitize_for_dump("original value", "password")); +        Kohana_Exception::_sanitize_for_dump("original value", "password", 5));      $this->assert_equal("original value", -        Kohana_Exception::_sanitize_for_dump("original value", "meow")); +        Kohana_Exception::_sanitize_for_dump("original value", "meow", 5));    }    public function sanitize_for_dump_match_key_loosely_test() {      $this->assert_equal("removed for display", -        Kohana_Exception::_sanitize_for_dump("original value", "this secret key")); +        Kohana_Exception::_sanitize_for_dump("original value", "this secret key", 5));    }    public function sanitize_for_dump_match_value_test() {      // Looks like a hash / secret value.      $this->assert_equal("removed for display", -        Kohana_Exception::_sanitize_for_dump("p$2a178b841c6391d6368f131", "meow")); +        Kohana_Exception::_sanitize_for_dump("p$2a178b841c6391d6368f131", "meow", 5));      $this->assert_equal("original value", -        Kohana_Exception::_sanitize_for_dump("original value", "meow")); +        Kohana_Exception::_sanitize_for_dump("original value", "meow", 5));    }    public function sanitize_for_dump_array_test() { @@ -64,7 +64,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {                        "three" => "removed for display");      $this->assert_equal($expected, -        Kohana_Exception::_sanitize_for_dump($var, "ignored")); +        Kohana_Exception::_sanitize_for_dump($var, "ignored", 5));    }    public function sanitize_for_dump_nested_array_test() { @@ -73,7 +73,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {      $expected = array("safe" => "original value 1",                        "safe 2" => array("some hash" => "removed for display"));      $this->assert_equal($expected, -        Kohana_Exception::_sanitize_for_dump($var, "ignored")); +        Kohana_Exception::_sanitize_for_dump($var, "ignored", 5));    }    public function sanitize_for_dump_user_test() { @@ -83,7 +83,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {      $user->email = "value 2";      $user->full_name = "value 3";      $this->assert_equal('User_Model object for "john" - details omitted for display', -        Kohana_Exception::_sanitize_for_dump($user, "ignored")); +        Kohana_Exception::_sanitize_for_dump($user, "ignored", 5));    }    public function sanitize_for_dump_database_test() { @@ -91,7 +91,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {          array("connection" => array("user" => "john", "name" => "gallery_3"),                "cache" => array()));      $this->assert_equal("Kohana_Exception_Test_Database object - details omitted for display", -        Kohana_Exception::_sanitize_for_dump($db, "ignored")); +        Kohana_Exception::_sanitize_for_dump($db, "ignored", 5));    }    public function sanitize_for_dump_nested_database_test() { @@ -104,7 +104,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {          array("some" => "foo",                "bar (type: Kohana_Exception_Test_Database)" =>                "Kohana_Exception_Test_Database object - details omitted for display"), -        Kohana_Exception::_sanitize_for_dump($var, "ignored")); +        Kohana_Exception::_sanitize_for_dump($var, "ignored", 5));    }    public function sanitize_for_dump_object_test() { @@ -117,7 +117,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {                        "private: email_address" => "removed for display",                        "password" => "removed for display");      $this->assert_equal($expected, -        Kohana_Exception::_sanitize_for_dump($obj, "ignored")); +        Kohana_Exception::_sanitize_for_dump($obj, "ignored", 5));    }    public function sanitize_for_dump_nested_object_test() { @@ -142,7 +142,7 @@ class Kohana_Exception_Test extends Gallery_Unit_Test_Case {                        "foo" => array("bar (type: User_Model)" =>                                       'User_Model object for "john" - details omitted for display'));      $this->assert_equal($expected, -        Kohana_Exception::_sanitize_for_dump($obj, "ignored")); +        Kohana_Exception::_sanitize_for_dump($obj, "ignored", 5));    }  } | 
