MessagePack\Tests\Unit\TypeTransformer\CollectionTest::testConstructor PHP Метод

testConstructor() публичный Метод

public testConstructor ( )
    public function testConstructor()
    {
        $this->assertNull($this->coll->find(5));
        $t1 = $this->getTransformerMock(1);
        $t2 = $this->getTransformerMock(2);
        $coll = new Collection([$t1, $t2]);
        $this->assertSame($t2, $coll->find(2));
    }