Phive\Queue\Tests\Queue\QueueTest::testSupportItemType PHP Method

testSupportItemType() public method

public testSupportItemType ( $item, $type )
    public function testSupportItemType($item, $type)
    {
        $this->queue->push($item);
        if (Types::TYPE_BINARY_STRING === $type) {
            // strict comparison
            $this->assertSame($item, $this->queue->pop());
        } else {
            // loose comparison
            $this->assertEquals($item, $this->queue->pop());
        }
    }