Ejemplo n.º 1
0
 public function testGetString()
 {
     $this->assertEquals('The value has to be of the type %s, but currently is of the type %s instead.', Strings::getString('message_incompatible_types'));
     $this->assertEquals('The value has to be of the type goodType, but currently is of the type badType instead.', Strings::getFormattedString('message_incompatible_types', null, 'goodType', 'badType'));
 }
Ejemplo n.º 2
0
 /**
  * @param string $methodName [Name of the method]
  * @param string $className [Name of the class]
  * @return string     [Concatenated message as a string]
  */
 public static function getMethodDoesNotExistMessage($methodName, $className)
 {
     return Strings::getFormattedString('message_method_does_not_exist', null, $methodName, $className);
 }