spec/Phn/Template/Fragment/SetSpec.php
function it_can_be_compared_to_other_template_fragments($sameValue, $differentValue, $differentType)
    {
        $sameValue->getValueMask()->willReturn(['1', '2']);
        $sameValue->getTypeMask()->willReturn('[..]');

        $this->equals($sameValue)->shouldReturn(true);

        $differentValue->getValueMask()->willReturn(['3', '4']);
        $differentValue->getTypeMask()->willReturn('[..]');

        $this->equals($differentValue)->shouldReturn(false);

        $differentType->getValueMask()->willReturn(['1', '2']);
        $differentType->getTypeMask()->willReturn('[##]');

        $this->equals($differentType)->shouldReturn(false);
    }
function it_can_be_compared_to_other_template_fragments($sameValue, $differentValue, $differentType)
    {
        $sameValue->getValueMask()->willReturn(['1', '2']);
        $sameValue->getTypeMask()->willReturn('[..]');

        $this->equals($sameValue)->shouldReturn(true);

        $differentValue->getValueMask()->willReturn(['3', '4']);
        $differentValue->getTypeMask()->willReturn('[..]');

        $this->equals($differentValue)->shouldReturn(false);

        $differentType->getValueMask()->willReturn(['1', '2']);
        $differentType->getTypeMask()->willReturn('[##]');

        $this->equals($differentType)->shouldReturn(false);
    }
function it_can_be_compared_to_other_template_fragments ( $ sameValue , $ differentValue , $ differentType ) { $ sameValue -> getValueMask ( ) -> willReturn ( [ '1' , '2' ] ) ; $ sameValue -> getTypeMask ( ) -> willReturn ( '[..]' ) ; $ this -> equals ( $ sameValue ) -> shouldReturn ( true ) ; $ differentValue -> getValueMask ( ) -> willReturn ( [ '3' , '4' ] ) ; $ differentValue -> getTypeMask ( ) -> willReturn ( '[..]' ) ; $ this -> equals ( $ differentValue ) -> shouldReturn ( false ) ; $ differentType -> getValueMask ( ) -> willReturn ( [ '1' , '2' ] ) ; $ differentType -> getTypeMask ( ) -> willReturn ( '[##]' ) ; $ this -> equals ( $ differentType ) -> shouldReturn ( false ) ; }
It can be compared to other template fragments.

@param \Phn\Template\Fragment\Set $sameValue
@param \Phn\Template\Fragment\Set $differentValue
@param \Phn\Template\Fragment\Set $differentType
It can be compared to other template fragments .