public function testGetPx() { $fileTable = new Media_Model_DbTable_File(); $pxRow = $fileTable->findOneBy('id', '88888888'); if (null !== $pxRow) { $pxRow->delete(); } $row = $fileTable->getPx(); $this->assertNotNull($row); try { $str = $row->getStaticUrl(); } catch (Exception $e) { $this->fail('Function getStaticUrl should not raise an exception'); } Media_Model_DbTable_File::setPx(null); $row2 = $fileTable->getPx(); $this->assertEquals($row->id, $row2->id); }