Ejemplo n.º 1
0
 /**
  * @param callable $callback
  */
 public function __invoke(callable $callback)
 {
     $this->config->setCallback($callback);
     $this->start();
 }
Ejemplo n.º 2
0
 public function testCallbackAccessor()
 {
     $this->assertNull($this->instance->getCallback());
     $this->assertSame($this->instance, $this->instance->setCallback('trim'));
     $this->assertSame('trim', $this->instance->getCallback());
 }