/**
  * @dataProvider provideChannelPositions
  */
 function testChannelsMatch(MySQLMasterPos $pos1, MySQLMasterPos $pos2, $matches)
 {
     $this->assertEquals($matches, $pos1->channelsMatch($pos2));
     $this->assertEquals($matches, $pos2->channelsMatch($pos1));
 }
	function hasReached( MySQLMasterPos $pos ) {
		$thisPos = $this->getCoordinates();
		$thatPos = $pos->getCoordinates();
		return ( $thisPos && $thatPos && $thisPos >= $thatPos );
	}
 function testMasterPos()
 {
     $pos1 = new MySQLMasterPos('db1034-bin.000976', '843431247');
     $pos2 = new MySQLMasterPos('db1034-bin.000976', '843431248');
     $this->assertTrue($pos1->hasReached($pos1));
     $this->assertTrue($pos2->hasReached($pos2));
     $this->assertTrue($pos2->hasReached($pos1));
     $this->assertFalse($pos1->hasReached($pos2));
 }