public function getMutation(array $tokens, $index) { $tokens[$index][0] = T_BOOLEAN_OR; $tokens[$index][1] = '||'; return $tokens; }
public function testReturnsTokenEquivalentToBooleanOr() { $mutation = new BooleanAnd(10); $this->assertEquals(array(10 => array(T_BOOLEAN_OR, '||')), $mutation->getMutation(array(), 10)); }