/** * This method tests the "indexOf" method. * * @dataProvider data_indexOf */ public function test_indexOf(array $provided, array $expected) { $p0 = ILinkedList\Type::make($provided[0], '\\Saber\\Data\\IInt32\\Type'); $p1 = IInt32\Type::box($provided[1]); $r0 = ILinkedList\Module::indexOf($p0, $p1); $e0 = $expected[0]; $this->assertInstanceOf('\\Saber\\Data\\IInt32\\Type', $r0); $this->assertSame($e0, $r0->unbox()); }