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

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

    public function testMatchReturnsNull()
    {
        $t1 = $this->getTransformerMock(1);
        $t1->expects($this->once())->method('supports')->willReturn(false);
        $this->coll->add($t1);
        $t2 = $this->getTransformerMock(2);
        $t2->expects($this->once())->method('supports')->willReturn(false);
        $this->coll->add($t2);
        $this->assertNull($this->coll->match(new \stdClass()));
    }