예제 #1
0
 public function testStrpos()
 {
     $t = new \Test\Strings();
     $this->assertSame($t->testStrpos('abcdef abcdef', 'a'), 0);
     $this->assertSame($t->testStrposOffset('abcdef abcdef', 'a', 1), 7);
 }
예제 #2
0
 public function testStrpos()
 {
     $t = new \Test\Strings();
     $this->assertTrue($t->testStrpos("abcdef abcdef", "a") == 0);
     $this->assertTrue($t->testStrposOffset("abcdef abcdef", "a", 1) == 7);
 }