예제 #1
0
 public function testOverloadCannotBeEvaluatedLazilyWithoutFirstParamTypeHint()
 {
     $this->options->set('foo', 'bar');
     $this->options->overload('foo', function ($object) {
         return 'test';
     });
     $resolved = $this->options->resolve();
     $this->assertTrue(is_callable($resolved['foo']));
 }
 public function testOverloadCallsSet()
 {
     $this->resolver->overload('foo', 'bar');
     $this->assertSame(array('foo' => 'bar'), $this->resolver->resolve());
 }