Example #1
0
 /**
  * @test
  */
 public function toStringReturnsTheStringVersionOfTheArgumentsValue()
 {
     $argument = new Tx_Extbase_MVC_Controller_Argument('dummy', 'Text');
     $argument->setValue(123);
     $this->assertSame((string) $argument, '123', 'The returned argument is not a string.');
     $this->assertNotSame((string) $argument, 123, 'The returned argument is identical to the set value.');
 }