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'))); }
public function testSetDefaultOptions() { $this->optionsResolver->expects($this->once())->method('setDefaults')->with(array('manager_name' => null)); $this->type->setDefaultOptions($this->optionsResolver); }