assert_equal($rand, $comment->author); $this->assert_equal($rand, $comment->email); $this->assert_equal($rand, $comment->text); $this->assert_equal($rand, $comment->item_id); $this->assert_equal($rand, $comment->datetime); } public function create_comment_using_current_time_test() { $rand = rand(); $comment = comment::create($rand, $rand, $rand, $rand); $this->assert_equal($rand, $comment->author); $this->assert_equal($rand, $comment->email); $this->assert_equal($rand, $comment->text); $this->assert_equal($rand, $comment->item_id); $this->assert_true($comment->datetime > time() - 10 && $comment->datetime <= time()); } }