Storm\Tests\Unit\Object\PropertyDataTest::testEquivalentPropertyDataMatches PHP Метод

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

    public function testEquivalentPropertyDataMatches()
    {
        $SameValue1 = [1, 2, 3, 4];
        $SameValue2 = "I am another value";
        $OtherPropertyData = $this->MakePropertyDataMock([$this->Property1, $this->Property2]);
        $this->PropertyData[$this->Property1] = $SameValue1;
        $OtherPropertyData[$this->Property1] = $SameValue1;
        $this->PropertyData[$this->Property2] = $SameValue2;
        $OtherPropertyData[$this->Property2] = $SameValue2;
        $this->assertTrue($this->PropertyData->Matches($OtherPropertyData));
        $this->assertTrue($OtherPropertyData->Matches($this->PropertyData));
    }