public function it_should_throw_exception_when_name_param_is_empty_or_null() { $this->shouldThrow('Exception')->during('findByName', array(null)); $this->shouldThrow('Exception')->during('findByName', array('')); }