本文整理匯總了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);
}