public function testChainable() { $this->assertInstanceOf($this->c, $this->ctrl->addTodo('edit')); $this->assertInstanceOf($this->c, $this->ctrl->setTodo('edit')); $this->assertInstanceOf($this->c, $this->ctrl->addTodos(array('edit', 'delete', 'remove'))); $this->assertInstanceOf($this->c, $this->ctrl->init()); $this->assertInstanceOf($this->c, $this->ctrl->run()); }