Gittern\Transport\PackfileTest::testCanGetDeltaOffsetObject PHP Méthode

testCanGetDeltaOffsetObject() public méthode

    public function testCanGetDeltaOffsetObject()
    {
        // Offset 340054 is an offset delta patched blob, an ascii picture of a wurst.
        // It corresponds to sha 2c1298dc7a92eb18a1e72658f61f181e1afdeb56
        // It's known to have md5 30e1df56c73b2fba193d8c822a882271
        $raw_object = $this->packfile->getRawObjectAtOffset(340054);
        $this->assertEquals('30e1df56c73b2fba193d8c822a882271', md5($raw_object->getData()));
        $this->assertEquals('blob', $raw_object->getType());
    }