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