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