public function testAssignments() { $view = new View(); $view->assign(['name' => 'john']); $data = ['name' => 'john']; $this->assertSame($data, $view->getAssignedData()['Ctrl']); $view->assign(['new' => 'data']); $data['new'] = 'data'; $this->assertSame($data, $view->getAssignedData()['Ctrl']); }