formatPropertyValue() 공개 메소드

formats the name of a property
public formatPropertyValue ( string $value, string $property ) : string
$value string
$property string
리턴 string
예제 #1
0
 /**
  * tests formatting a property value
  *
  * @dataProvider propertyNameTypeDataProvider
  *
  * @param string $propertyName
  * @param string $inputValue
  * @param string $expectedValue
  *
  * @group formatter
  * @group sourcetest
  */
 public function testFormatPropertyValue($propertyName, $inputValue, $expectedValue)
 {
     $actualValue = $this->object->formatPropertyValue($inputValue, $propertyName);
     self::assertSame($expectedValue, $actualValue, "Property {$propertyName} should be {$expectedValue} (was {$actualValue})");
 }