/** * @expectedException \Athem\Exception\InvalidMethod */ public final function testKsort() { try { $this->compiler->ksort(); } catch (\Exception $e) { // var_dump($e->getMessage()); $this->assertEquals($e->getMessage(), sprintf('Method %s::ksort is not supported.', 'Athem\\Code\\Preproc', 1)); throw $e; } }