Пример #1
0
 public function testItResolvesOptions()
 {
     $this->optionsResolver->expects($this->once())->method('resolve')->with($this->isType('array'))->will($this->returnValue(array('foo' => 'bar')));
     $this->assertSame(array('foo' => 'bar'), $this->object->resolveProperties(array('baz' => 'qux')));
 }
Пример #2
0
 public function testSetDefaultOptions()
 {
     $this->optionsResolver->expects($this->once())->method('setDefaults')->with(array('manager_name' => null));
     $this->type->setDefaultOptions($this->optionsResolver);
 }