Question: Is it possible to use Jest with Web pack? I mean using it in parallel with Web pack hot-load.And Run our tests every time when Web pack will build the project .

Answer: 
If you want check if your `UPDATE` query has actually updated one or more rows, you can use [PDOStatement::rowCount](http://php.net/manual/en/pdostatement.rowcount.php) after the execution of the query.
> 
> A few Observations:   
> 
>  1.) You bound `expires` and `token` but not `selector`.   
> 
>  2.) You may want to remove the colon ( **:** ) in front of the array containing the named-parameters.
> 
> 
> 

```
if(isset($_COOKIE['authUser'])) {
    $cookie_contents = $_COOKIE['authUser'];
    $selector        = "ghddd";

    $query           = $dbh->prepare("UPDATE auth_tokens 
                                      SET token=:token, 
                                      expires=:expires WHERE 
                                      selector=:selector");

    // $query->execute(...) IS EXPECTED TO RETURN A BOOLEAN TRUE OR FALSE.
    if( $query->execute(array(
        "token"     => "",        //<== COLON (:) REMOVED   
        "expires"   => "",        //<== COLON (:) REMOVED  
        "selector"  => $selector  
    ))) {
          echo 'Success';         //<== EXPECTING BOOLEAN 'TRUE' FROM $query->execute
    }
    else {
          echo 'Failure';         //<== EXPECTING BOOLEAN 'FALSE' FROM $query->execute
    }
}

```