@@ 1914-1930 (lines=17) @@ | ||
1911 | $this->assertEquals($str, $stringy); |
|
1912 | } |
|
1913 | ||
1914 | public function removeLeftProvider() |
|
1915 | { |
|
1916 | return array( |
|
1917 | array('foo bar', 'foo bar', ''), |
|
1918 | array('oo bar', 'foo bar', 'f'), |
|
1919 | array('bar', 'foo bar', 'foo '), |
|
1920 | array('foo bar', 'foo bar', 'oo'), |
|
1921 | array('foo bar', 'foo bar', 'oo bar'), |
|
1922 | array('oo bar', 'foo bar', S::create('foo bar')->first(1), 'UTF-8'), |
|
1923 | array('oo bar', 'foo bar', S::create('foo bar')->at(0), 'UTF-8'), |
|
1924 | array('fòô bàř', 'fòô bàř', '', 'UTF-8'), |
|
1925 | array('òô bàř', 'fòô bàř', 'f', 'UTF-8'), |
|
1926 | array('bàř', 'fòô bàř', 'fòô ', 'UTF-8'), |
|
1927 | array('fòô bàř', 'fòô bàř', 'òô', 'UTF-8'), |
|
1928 | array('fòô bàř', 'fòô bàř', 'òô bàř', 'UTF-8') |
|
1929 | ); |
|
1930 | } |
|
1931 | ||
1932 | /** |
|
1933 | * @dataProvider removeRightProvider() |
|
@@ 1944-1960 (lines=17) @@ | ||
1941 | $this->assertEquals($str, $stringy); |
|
1942 | } |
|
1943 | ||
1944 | public function removeRightProvider() |
|
1945 | { |
|
1946 | return array( |
|
1947 | array('foo bar', 'foo bar', ''), |
|
1948 | array('foo ba', 'foo bar', 'r'), |
|
1949 | array('foo', 'foo bar', ' bar'), |
|
1950 | array('foo bar', 'foo bar', 'ba'), |
|
1951 | array('foo bar', 'foo bar', 'foo ba'), |
|
1952 | array('foo ba', 'foo bar', S::create('foo bar')->last(1), 'UTF-8'), |
|
1953 | array('foo ba', 'foo bar', S::create('foo bar')->at(6), 'UTF-8'), |
|
1954 | array('fòô bàř', 'fòô bàř', '', 'UTF-8'), |
|
1955 | array('fòô bà', 'fòô bàř', 'ř', 'UTF-8'), |
|
1956 | array('fòô', 'fòô bàř', ' bàř', 'UTF-8'), |
|
1957 | array('fòô bàř', 'fòô bàř', 'bà', 'UTF-8'), |
|
1958 | array('fòô bàř', 'fòô bàř', 'fòô bà', 'UTF-8') |
|
1959 | ); |
|
1960 | } |
|
1961 | ||
1962 | /** |
|
1963 | * @dataProvider isAlphaProvider() |