Exemple #1
0
 public function testConstructorShouldSetStateFromOptions()
 {
     $options = array('type' => 'static', 'class' => 'Foo', 'method' => 'bar');
     $callback = new Method\Callback($options);
     $test = $callback->toArray();
     $this->assertSame($options, $test);
 }