<?php

/**
 * Created by PhpStorm.
 * User: Dorota
 * Date: 2015-10-02
 * Time: 11:13
 */
include_once 'users.php';
include_once 'tweets.php';
$userName = "******";
$pass = "******";
$host = "localhost";
$dbName = "Tweeter";
$conn = new mysqli($host, $userName, $pass, $dbName);
if ($conn == false) {
    die("Cannt connect");
}
User::setConnection($conn);
Tweet::setConnection($conn);
//$createdUser = User::register('romek', 'dudek', 'dudek', 'kalosz');
/*
$loginUser = User::logIn("*****@*****.**", "dudek");
var_dump($loginUser);
$loginUser->setDescription("po poludniu kawka");
$loginUser->savetoDB();
var_dump($loginUser);
*/