public function testSetIntName() { try { $this->article->setName(10); } catch (InvalidArgumentException $e) { return; } $this->fail('Something went wrong'); }