示例#1
0
 public function testAddAndGetView()
 {
     $new_view = $this->getMockBuilder(InterfaceView::class)->getMock();
     $this->assertNull($this->object->getView());
     $this->object->setView($new_view);
     $this->assertSame($new_view, $this->object->getView());
     $this->assertSame($new_view, $this->object->view());
     $this->assertInstanceOf(InterfaceView::class, $this->object->getView());
 }