Example #1
0
 public function testWidgetCastStringFromCallback()
 {
     $widget = new Widget();
     $widget->setCallback([$this, 'widgetCallback'])->setCallbackArguments(['first' => 'Clippy', 'second' => 'Koala'])->setContent('Some test content');
     $this->assertSame('Clippy gives gum leaves to the Koala', (string) $widget);
 }