/** * @dataProvider assocOneToTen */ public function testThatContainsReturnsWhetherItContainsAnIdenticalElement(\Pinq\ITraversable $traversable, array $data) { $this->assertTrue($traversable->contains(1)); $this->assertFalse($traversable->contains('1')); $this->assertTrue($traversable->contains(10)); $this->assertFalse($traversable->contains('10')); $this->assertFalse($traversable->contains(-1)); $this->assertFalse($traversable->contains(0)); $this->assertFalse($traversable->contains(11)); }
public function visitContains(Requests\Contains $request) { return $this->traversable->contains($this->resolvedParameters[$request->getValueId()]); }