示例#1
0
 /** @test */
 public function CanBeRepresentedAsString()
 {
     $alias = new Alias('test123');
     $this->assertEquals('test123', (string) new Alias('test123'));
     $this->assertEquals('test123', $alias->getAlias());
 }
 public function setAlias(Alias $alias)
 {
     $this->parameters['alias'] = $alias->__toString();
 }