/** * @test */ public function getSourceChildPropertiesToBeConvertedShouldReturnEmptyArray() { $this->assertEquals(array(), $this->converter->getSourceChildPropertiesToBeConverted('myString')); }
/** * @test */ public function getSourceChildPropertiesToBeConvertedShouldReturnEmptyArray() { $this->assertEmpty($this->converter->getSourceChildPropertiesToBeConverted('something')); }
/** * @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)); }