Services\DataObjectTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $schemas = array(array('DataObjectTest_Obj1', array('foo' => array('type' => 'FhirType2', 'plural' => false), 'bar' => array('type' => 'FhirType2', 'plural' => true))), array('FhirType2', array('baz' => array('type' => 'integer', 'plural' => false))));
        $marshal = $this->getMockBuilder('FhirMarshal')->disableOriginalConstructor()->getMock();
        $marshal->expects($this->any())->method('getSchema')->will($this->returnValueMap($schemas));
        \Yii::app()->setComponent('fhirMarshal', $marshal);
    }