/** * @depends testAddedValuesAreSet */ public function testCorrectPropertiesAreReturned() { $this->PropertyData[$this->Property1] = true; $this->PropertyData[$this->Property2] = true; $this->assertEquals($this->PropertyData->GetProperty($this->Property1->GetIdentifier()), $this->Property1); $this->assertEquals($this->PropertyData->GetProperty($this->Property2->GetIdentifier()), $this->Property2); }
public function __construct(Object\PropertyData $PropertyData) { parent::__construct($PropertyData->GetEntityType()); foreach ($PropertyData as $PropertyIdentifier => $Value) { $Property = $PropertyData->GetProperty($PropertyIdentifier); $this->AddPredicate(Expression::BinaryOperation(Expression::Property($Property), Operators\Binary::Identity, Expression::Constant($Value))); } }