public/phpmyadmin/vendor/phpmyadmin/shapefile/tests/ShapeFileTest.php
/**
     * Tests removing record from a file.
     */
Tests removing record from a file.
Tests removing record from a file .
public function testDelete()
    {
        if (!ShapeFile::supports_dbase()) {
            $this->markTestSkipped('dbase extension missing');
        }
        $this->createTestData();
        $shp = new ShapeFile(1);
        $shp->loadFromFile('./data/test_shape.*');
        $shp->deleteRecord(1);
        $shp->saveToFile();
        $this->assertEquals(3, count($shp->records));
        $shp = new ShapeFile(1);
        $shp->loadFromFile('./data/test_shape.*');
        $this->assertEquals(3, count($shp->records));
    }
public function testDelete ( ) { if ( ! ShapeFile :: supports_dbase ( ) ) { $ this -> markTestSkipped ( 'dbase extension missing' ) ; } $ this -> createTestData ( ) ; $ shp = new ShapeFile ( 1 ) ; $ shp -> loadFromFile ( './data/test_shape.*' ) ; $ shp -> deleteRecord ( 1 ) ; $ shp -> saveToFile ( ) ; $ this -> assertEquals ( 3 , count ( $ shp -> records ) ) ; $ shp = new ShapeFile ( 1 ) ; $ shp -> loadFromFile ( './data/test_shape.*' ) ; $ this -> assertEquals ( 3 , count ( $ shp -> records ) ) ; }
Tests removing record from a file.
Tests removing record from a file .