protected function assert_rating_matches($expected, $stored) {
        $this->assertEquals($expected->rating, $stored->rating);
        $this->assertEquals($expected->userid, $stored->author);
    }
protected function assert_rating_matches($expected, $stored) {
        $this->assertEquals($expected->rating, $stored->rating);
        $this->assertEquals($expected->userid, $stored->author);
    }
protected function assert_rating_matches ( $ expected , $ stored ) { $ this -> assertEquals ( $ expected -> rating , $ stored -> rating ) ; $ this -> assertEquals ( $ expected -> userid , $ stored -> author ) ; }
Assert that the rating matches.

@param   \stdClass           $expected   The expected rating structure
@param   \stdClass           $stored     The actual rating structure
Assert that the rating matches .