/** * @test * it should allow specifying a namespaced exception */ public function it_should_allow_specifying_a_namespaced_exception() { $exception = 'some\\SomeException'; Arg::set_exception($exception); $this->setExpectedException($exception); Arg::_('foo')->is_int(); Arg::set_exception('\\' . $exception); $this->setExpectedException($exception); Arg::_('foo')->is_int(); }