Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -38,7 +38,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
$this->setConstants(false);
|
||||
$exception = $this->getMock('ErrorException', array(), array('', 0, E_NOTICE));
|
||||
$action = new ErrorAction($exception);
|
||||
$this->assertEquals($exception, $action->exception);
|
||||
$this->assertSame($exception, $action->exception);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -49,7 +49,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
$this->setConstants(false);
|
||||
$exception = $this->getMock('ErrorException', array(), array('', 0, E_WARNING));
|
||||
$action = new ErrorAction($exception);
|
||||
$this->assertEquals($exception, $action->exception);
|
||||
$this->assertSame($exception, $action->exception);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -60,7 +60,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
$this->setConstants(false);
|
||||
$exception = $this->getMock('ErrorException', array(), array('', 0, E_ERROR));
|
||||
$action = new ErrorAction($exception);
|
||||
$this->assertEquals($exception, $action->exception);
|
||||
$this->assertSame($exception, $action->exception);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -71,7 +71,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
$this->setConstants(false);
|
||||
$exception = $this->getMock('ErrorException', array(), array('', 0, 211));
|
||||
$action = new ErrorAction($exception);
|
||||
$this->assertEquals($exception, $action->exception);
|
||||
$this->assertSame($exception, $action->exception);
|
||||
}
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
$controller->setView('SomeView');
|
||||
$action = new ErrorAction($exception);
|
||||
$result = $action->fetch();
|
||||
$this->assertEquals('/actions/500', $result['template']);
|
||||
$this->assertSame('/actions/500', $result['template']);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,7 +103,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
->will($this->returnValue(array('one' => array('class' => 'AjaxAction'))));
|
||||
|
||||
$action = new ErrorAction($exception);
|
||||
$this->assertEquals($exception, $action->exception);
|
||||
$this->assertSame($exception, $action->exception);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -118,7 +118,7 @@ class ErrorActionTest extends Action_TestCase
|
||||
->will($this->returnValue(array('one' => array('class' => 'Action'))));
|
||||
|
||||
$action = new ErrorAction($exception);
|
||||
$this->assertEquals($exception, $action->exception);
|
||||
$this->assertSame($exception, $action->exception);
|
||||
}
|
||||
|
||||
private function setConstants($val = false)
|
||||
|
Reference in New Issue
Block a user