Example #1
0
 public function testSetEmailInvalid()
 {
     $response = new Response();
     try {
         $response->setEmail('true');
         $this->fail();
     } catch (\InvalidArgumentException $expected) {
     }
     try {
         $response->setEmail(0);
         $this->fail();
     } catch (\InvalidArgumentException $expected) {
     }
     try {
         $response->setEmail(1);
         $this->fail();
     } catch (\InvalidArgumentException $expected) {
     }
 }