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