Esempio n. 1
0
 protected function setUp()
 {
     $this->object = $this->getMockForAbstractClass('Chippyash\\Type\\AbstractType', array(null));
     $this->object->expects($this->any())->method('typeOf')->will($this->returnArgument(0));
 }
 public function testGetInvokesGetAsNativeType()
 {
     $this->object->expects($this->once())->method('getAsNativeType')->will($this->returnValue('foo'));
     $this->assertEquals('foo', $this->object->get());
 }