expectException('InvalidArgumentException'); $this->expectExceptionMessage('CODE1'); throw new \InvalidArgumentException('CODE1'); } public function testSkippedTest() { $this->markTestSkipped('Skipped tests do not cause Exceptions in Listener'); } public function testIncompleteTest() { $this->markTestIncomplete('Incomplete tests do not cause Exceptions in Listener'); } }