Skip to content

Commit 9162c1c

Browse files
committed
Fix some easy warnings generated in tests.
1 parent 2fe2905 commit 9162c1c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/php_serialize_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def self.test(ruby, php, opts = {})
5858
test false, 'b:0;'
5959
test true, 'b:1;'
6060
test 42, 'i:42;'
61-
test -42, 'i:-42;'
61+
test(-42, 'i:-42;')
6262
test 2147483647, "i:2147483647;", :name => 'Max Fixnum'
63-
test -2147483648, "i:-2147483648;", :name => 'Min Fixnum'
63+
test(-2147483648, "i:-2147483648;", :name => 'Min Fixnum')
6464
test 4.2, 'd:4.2;'
6565
test 'test', 's:4:"test";'
6666
test :test, 's:4:"test";', :name => 'Symbol'
@@ -111,7 +111,7 @@ def test_sessions
111111
def test_new_struct_creation
112112
assert_nothing_raised do
113113
phps = 'O:8:"stdClass":2:{s:3:"url";s:17:"/legacy/index.php";s:8:"dateTime";s:19:"2012-10-24 22:29:13";}'
114-
unserialized = PHP.unserialize(phps)
114+
PHP.unserialize(phps)
115115
end
116116
end
117117
end

0 commit comments

Comments
 (0)