Exemple #1
0
 /**
  */
 public function testToString()
 {
     $this->assertFalse($this->object->hasTable(PHIGRATE_TS_SCHEMA_TBL_NAME));
     $this->object->createSchemaVersionTable();
     $this->assertTrue($this->object->hasTable(PHIGRATE_TS_SCHEMA_TBL_NAME));
     $expected = 'Phigrate_Adapter_Mysql_Adapter, version: 1.0';
     $return = $this->object->setCurrentVersion('firstVersion');
     $this->assertTrue($return);
     $this->assertEquals($expected, (string) $this->object);
     $this->assertEquals($expected, $this->object->__toString());
 }