예제 #1
0
 public function testGetBoards()
 {
     $boards = $this->boardService->getBoards();
     $this->assertTrue(is_array($boards));
     $this->assertGreaterThanOrEqual(1, count($boards));
     $this->assertContainsOnlyInstancesOf("TigerKit\\Models\\Board", $boards);
 }
예제 #2
0
 public function listBoards()
 {
     $boards = $this->boardService->getBoards();
     $this->slim->render('boards/list.phtml', ['boards' => $boards]);
 }