本文整理汇总了PHP中Review::getReviewDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Review::getReviewDate方法的具体用法?PHP Review::getReviewDate怎么用?PHP Review::getReviewDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Review
的用法示例。
在下文中一共展示了Review::getReviewDate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testDefaultValues
/**
* Test default return values.
*/
public function testDefaultValues()
{
$r = new Review();
$this->assertEquals('2001-01-01', $r->getReviewDate('Y-m-d'));
$this->assertFalse($r->isModified(), "expected isModified() to be false");
$acct = new BookstoreEmployeeAccount();
$this->assertEquals(true, $acct->getEnabled());
$this->assertFalse($acct->isModified());
$acct->setLogin("testuser");
$acct->setPassword("testpass");
$this->assertTrue($acct->isModified());
}
示例2: testTemporalValues_Empty
/**
* Test setting empty temporal values.
* @link http://propel.phpdb.org/trac/ticket/586
*/
public function testTemporalValues_Empty()
{
$review = new Review();
$review->setReviewDate('');
$this->assertNull($review->getReviewDate());
}
示例3: Review
function test_update()
{
//Arrange
$beer_id = 1;
$user_id = 1;
$review = "Great beer";
$date = "2015-10-08";
$id = 3;
$test_review = new Review($beer_id, $user_id, $review, $date, $id);
$test_review->save();
$new_review = "Bad beer";
$new_review_date = "2015-10-09";
//Act
$test_review->update($new_review, $new_review_date);
$updated_review = $test_review->getReview();
$updated_review_date = $test_review->getReviewDate();
$result = [$updated_review, $updated_review_date];
//Assert
$this->assertEquals([$new_review, $new_review_date], $result);
}