Source

						public function testValidatesCustomEventsFirstValid() {
		$post = MockPostForValidates::create(array(
			'title' => 'new post', 'email' => 'foo@bar.com'
		));

		$events = array('custom_event','another_custom_event');

		$result = $post->validates(compact('events'));
		$this->assertTrue($result === false);
		$result = $post->errors();
		$this->assertTrue(!empty($result));

		$expected = array(
			'email' => array('email is not in 2nd list')
		);
		$result = $post->errors();
		$this->assertEqual($expected, $result);
	}