Gittern\Transport\PackfileTest::testCanGetRegularObject PHP Method

testCanGetRegularObject() public method

    public function testCanGetRegularObject()
    {
        // Offset 339525 is a blob, an ascii picture of a wurst, with an extra text about how
        // nice it is.
        // It corresponds to sha 24fb5bad9c8f3b2694412ea309f207091f2309cf
        // It's known to have md5 af4dc5e71d65c6770b8cf72e26a3a093
        $raw_object = $this->packfile->getRawObjectAtOffset(339525);
        $this->assertEquals('af4dc5e71d65c6770b8cf72e26a3a093', md5($raw_object->getData()));
        $this->assertEquals('blob', $raw_object->getType());
    }