29 $restriction =
new $class( 1, 2 );
30 $second =
new $class( 1, 2 );
31 $this->assertTrue( $restriction->equals( $second ) );
34 $second = $this->createMock( $this->
getClass() );
35 $this->assertFalse( $restriction->equals( $second ) );
38 $second =
new $class( 2, 2 );
39 $this->assertTrue( $restriction->equals( $second ) );
42 $second =
new $class( 1, 3 );
43 $this->assertFalse( $restriction->equals( $second ) );