public function testGetCreateSQLWithFloatDataFromAnnotatedEntity() { $this->annotatedTest->setString("some string"); $this->annotatedTest->setFloat(0.019284); $sql = $this->annotatedTableData->getCreateSQL($this->annotatedTest); $this->assertEqualsFixture($sql, __FUNCTION__, $this->annotatedTest->getId()); $this->runQuery($sql); }
public function testCanRefreshEntity() { $this->annotatedTestDao->create($this->entity); $oldEntity = clone $this->entity; $this->entity->setString("some updated value"); $this->annotatedTestDao->update($this->entity); $this->annotatedTestDao->refresh($oldEntity); $this->assertEquals($this->entity->getString(), $oldEntity->getString()); }