Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 6569d98

Browse files
Merge pull request #17 from pinepain/fix-tests
Fix tests
2 parents 2646cca + 6e24213 commit 6569d98

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

‎.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ before_install:
2424
- sudo add-apt-repository ppa:pinepain/libv8-${V8} -y
2525
- sudo apt-get update -q
2626
- sudo apt-get install -y libv8-${V8}-dev
27+
- php -i
28+
- php-config || true
2729

2830
before_script:
2931
- echo 'variables_order = "EGPCS"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

‎tests/V8Int32Value.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $helper->space();
5454

5555

5656
$helper->header('Test negative value in constructor');
57-
$value = new V8\Int32Value($isolate, -123.456);
57+
$value = new V8\Int32Value($isolate, -123);
5858
$helper->method_export($value, 'Value');
5959
$helper->method_export($value, 'BooleanValue', [$context]);
6060
$helper->method_export($value, 'NumberValue', [$context]);

‎tests/V8IntegerValue.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $helper->space();
5454

5555

5656
$helper->header('Test negative value in constructor');
57-
$value = new V8\IntegerValue($isolate, -123.456);
57+
$value = new V8\IntegerValue($isolate, -123);
5858
$helper->method_export($value, 'Value');
5959
$helper->method_export($value, 'BooleanValue', [$context]);
6060
$helper->method_export($value, 'NumberValue', [$context]);

‎tests/V8StringValue.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ $v8_helper = new PhpV8Helpers($helper);
1313

1414
// Tests:
1515

16-
1716
$isolate = new V8\Isolate();
1817

1918
$default = new V8\StringValue($isolate);
@@ -87,7 +86,6 @@ foreach (['Hello, world!', 'Привет, мир!', 'こんにちは世界'] as
8786
$helper->method_export($value, 'ContainsOnlyOneByte');
8887

8988
$helper->function_export('strlen', [$value->Value()]);
90-
$helper->function_export('mb_strlen', [$value->Value()]);
9189
$helper->space();
9290
}
9391

@@ -207,7 +205,6 @@ V8\StringValue->Utf8Length(): int(13)
207205
V8\StringValue->IsOneByte(): bool(true)
208206
V8\StringValue->ContainsOnlyOneByte(): bool(true)
209207
strlen(): 13
210-
mb_strlen(): 13
211208

212209

213210
V8\StringValue->Value(): string(21) "Привет, мир!"
@@ -216,7 +213,6 @@ V8\StringValue->Utf8Length(): int(21)
216213
V8\StringValue->IsOneByte(): bool(false)
217214
V8\StringValue->ContainsOnlyOneByte(): bool(false)
218215
strlen(): 21
219-
mb_strlen(): 12
220216

221217

222218
V8\StringValue->Value(): string(21) "こんにちは世界"
@@ -225,4 +221,3 @@ V8\StringValue->Utf8Length(): int(21)
225221
V8\StringValue->IsOneByte(): bool(false)
226222
V8\StringValue->ContainsOnlyOneByte(): bool(false)
227223
strlen(): 21
228-
mb_strlen(): 7

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /