/** * @test */ public function getSourceChildPropertiesToBeConvertedReturnsAllPropertiesExceptTheIdentityProperty() { $source = array('k1' => 'v1', '__identity' => 'someIdentity', 'k2' => 'v2'); $expected = array('k1' => 'v1', 'k2' => 'v2'); $this->assertEquals($expected, $this->converter->getSourceChildPropertiesToBeConverted($source)); }
/** * @test */ public function getSourceChildPropertiesToBeConvertedShouldReturnEmptyArray() { $this->assertEquals(array(), $this->converter->getSourceChildPropertiesToBeConverted('myString')); }