/** * @test */ public function setMappedTransientFieldNamesValidateResult() { $mappedTransientFieldNames = array('transientField' => 'transientFieldValue'); $this->classMetadata->setMappedTransientFieldNames($mappedTransientFieldNames); foreach ($mappedTransientFieldNames as $name => $value) { $this->assertTrue($this->classMetadata->isTransient($value)); } $this->assertFalse($this->classMetadata->isTransient('someInvalidValue')); }