| 1 | <?php | ||
| 19 | class RussianToEnglishTest extends \PHPUnit_Framework_TestCase | ||
| 20 | { | ||
| 21 | /** | ||
| 22 | * @var Transliterator | ||
| 23 | */ | ||
| 24 | protected $transliterator; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Set up environment | ||
| 28 | */ | ||
| 29 | public function setUp() | ||
| 33 | |||
| 34 | /** | ||
| 35 | * Test transliteration from Russian to English | ||
| 36 | * | ||
| 37 | * @param array $russianText Russian text | ||
| 38 | * @param array $transliteratedText Expected transliterated text | ||
| 39 | * | ||
| 40 | * @test | ||
| 41 | * @covers \Fresh\Transliteration\Transliterator | ||
| 42 | * @covers \Fresh\Transliteration\RussianToEnglish | ||
| 43 | * @dataProvider dataProvider | ||
| 44 | */ | ||
| 45 | public function transliterationFromRussianToEnglish($russianText, $transliteratedText) | ||
| 49 | |||
| 50 | /** | ||
| 51 | * Data provider for transliteration from Russian to English | ||
| 52 | * | ||
| 53 | * @return array | ||
| 54 | */ | ||
| 55 | public function dataProvider() | ||
| 124 | } | ||
| 125 | 
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: