public function seeEmailIsSent($num = null)
    {
        if ($num === null) {
            $this->assertNotEmpty($this->grabSentEmails(), 'emails were sent');
            return;
        }
        $this->assertEquals($num, count($this->grabSentEmails()), 'number of sent emails is equal to ' . $num);
    }
public function seeEmailIsSent($num = null)
    {
        if ($num === null) {
            $this->assertNotEmpty($this->grabSentEmails(), 'emails were sent');
            return;
        }
        $this->assertEquals($num, count($this->grabSentEmails()), 'number of sent emails is equal to ' . $num);
    }
public function seeEmailIsSent ( $ num = null ) { if ( $ num === null ) { $ this -> assertNotEmpty ( $ this -> grabSentEmails ( ) , 'emails were sent' ) ; return ; } $ this -> assertEquals ( $ num , count ( $ this -> grabSentEmails ( ) ) , 'number of sent emails is equal to ' . $ num ) ; }
Checks that email is sent.

```php
<?php
// check that at least 1 email was sent
$I->seeEmailIsSent();

// check that only 3 emails were sent
$I->seeEmailIsSent(3);
```

@param int $num
@throws ModuleException
@part email
Checks that email is sent .