Added ClassName::fromObject method and companion test case.

Archer expects PHPUnit to be available via the PATH, not as a code dependency via Composer. PHPUnit is quite a large download, so I'm not willing to add it here.