public function testCreate() { $tc = new PersonController(false); $tc->init(); $_POST['Name'] = 'Robert Johnson'; $_POST['Introduction'] = 'Fatguy'; $tc->create(); $stmt = self::$db->db->query("select * from person where name='Robert Johnson'"); $rows = $stmt->fetchAll(); $this->assertEquals(1, sizeof($rows)); }