Elgg\Structs\Collection\InMemoryTest::testContainsDoesNotImplicitlyCastSimilarValues PHP Method

testContainsDoesNotImplicitlyCastSimilarValues() public method

    public function testContainsDoesNotImplicitlyCastSimilarValues()
    {
        $collection = InMemory::fromArray(['1', false]);
        $this->assertTrue($collection->contains('1'));
        $this->assertTrue($collection->contains(false));
        $this->assertFalse($collection->contains(1));
        $this->assertFalse($collection->contains(0));
        $this->assertFalse($collection->contains(''));
    }