$this->assertEquals( 'foo', $obj->getClosing( 0 ) );
$this->assertEquals( 'bar', $obj->getClosing( 1 ) );
$this->assertEquals( 'baz', $obj->getClosing( 2 ) );
- $this->assertEquals( null, $obj->getClosing( 3 ) );
+ $this->assertNull( $obj->getClosing( 3 ) );
}
/**
*/
public function testNorig() {
$obj = new FakeDiffOp();
- $this->assertEquals( 0, $obj->norig() );
+ $this->assertSame( 0, $obj->norig() );
$obj->orig = [ 'foo' ];
$this->assertEquals( 1, $obj->norig() );
}
*/
public function testNclosing() {
$obj = new FakeDiffOp();
- $this->assertEquals( 0, $obj->nclosing() );
+ $this->assertSame( 0, $obj->nclosing() );
$obj->closing = [ 'foo' ];
$this->assertEquals( 1, $obj->nclosing() );
}