/** * Returns the full name * * @return StringLiteral */ public function getFullName() { $fullNameString = $this->firstName . ($this->middleName->isEmpty() ? '' : ' ' . $this->middleName) . ($this->lastName->isEmpty() ? '' : ' ' . $this->lastName); $fullName = new StringLiteral($fullNameString); return $fullName; }
public function testIsEmpty() { $string = new StringLiteral(''); $this->assertTrue($string->isEmpty()); }