public function lazyCompilation() { $p = new Pattern('('); try { $p->matches('irrelevant'); $this->fail('Expected exception not thrown', null, 'lang.FormatException'); } catch (FormatException $expected) { // OK } }