Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
fix tests for php 5.5.35/5.6.21/7.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Apr 28, 2016
1 parent 3bd61bc commit 6af1564
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/PHP/Shim/IntlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function testGrapheme_strpos()
$this->assertSame(false, grapheme_strpos('abc', ''));
$this->assertSame(false, grapheme_strpos('abc', 'd'));
$this->assertSame(false, grapheme_strpos('abc', 'a', 3));
$this->assertSame(0, grapheme_strpos('abc', 'a', -1));
$this->assertFalse(grapheme_strpos('abc', 'a', -1));
$this->assertSame(1, grapheme_strpos('한국어', '국'));
$this->assertSame(3, grapheme_stripos('DÉJÀ', 'à'));
$this->assertSame(false, grapheme_strrpos('한국어', ''));
Expand Down
2 changes: 1 addition & 1 deletion tests/Utf8/HhvmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function test1()
public function test2()
{
// Negative offset are not allowed but native PHP silently casts them to zero
$this->assertSame(0, grapheme_strpos('abc', 'a', -1));
$this->assertFalse(grapheme_strpos('abc', 'a', -1));
}

public function test3()
Expand Down
2 changes: 1 addition & 1 deletion tests/Utf8Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function testStrpos()
$this->assertSame(false, u::strpos('abc', ''));
$this->assertSame(false, u::strpos('abc', 'd'));
$this->assertSame(false, u::strpos('abc', 'a', 3));
$this->assertSame(0, u::strpos('abc', 'a', -1));
$this->assertFalse(u::strpos('abc', 'a', -1));
$this->assertSame(1, u::strpos('한국어', '국'));
$this->assertSame(3, u::stripos('DÉJÀ', 'à'));
$this->assertSame(1, u::stripos('aςσb', 'ΣΣ'));
Expand Down

0 comments on commit 6af1564

Please sign in to comment.