How to throw an Exception with a Mock object on method call in PHPUnit

Code
<?php

class ExceptionMockTest extends PHPUnit_Framework_TestCase
{
    public function 
testMockException()
    {
        
$mock $this->getMock('Fooable');
        
$mock->expects($this->once())
            ->
method('connect')
            ->
will($this->throwException(
                new 
Exception('Expected Exception was thrown'))
            );
        
        
$mock->connect();
    }
}

interface 
Fooable
{
    public function 
connect();
}
Result
Time: 80 ms, Memory: 2.00MB

There was 1 error:

1) ExceptionMockTest::testMockException
Expected Exception was thrown

ExceptionMockTest.php:11

ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6