4 require_once __DIR__ . DIRECTORY_SEPARATOR .
'FakeDiffOp.php';
20 $this->assertEquals(
'foo', $obj->getType() );
28 $obj->orig =
array(
'foo' );
29 $this->assertEquals(
array(
'foo' ), $obj->getOrig() );
37 $obj->closing =
array(
'foo' );
38 $this->assertEquals(
array(
'foo' ), $obj->getClosing() );
46 $obj->closing =
array(
'foo',
'bar',
'baz' );
47 $this->assertEquals(
'foo', $obj->getClosing( 0 ) );
48 $this->assertEquals(
'bar', $obj->getClosing( 1 ) );
49 $this->assertEquals(
'baz', $obj->getClosing( 2 ) );
50 $this->assertEquals(
null, $obj->getClosing( 3 ) );
58 $this->assertEquals( 0, $obj->norig() );
59 $obj->orig =
array(
'foo' );
60 $this->assertEquals( 1, $obj->norig() );
68 $this->assertEquals( 0, $obj->nclosing() );
69 $obj->closing =
array(
'foo' );
70 $this->assertEquals( 1, $obj->nclosing() );