Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -42,7 +42,7 @@ class PHPViewTest extends PHPUnit_Framework_TestCase
|
||||
public function testPHPViewConstructor()
|
||||
{
|
||||
$this->assertInstanceOf('PHPView', $this->view);
|
||||
$this->assertEquals('vfs://root/views/', $this->view->getPath());
|
||||
$this->assertSame('vfs://root/views/', $this->view->getPath());
|
||||
}
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ class PHPViewTest extends PHPUnit_Framework_TestCase
|
||||
public function testEscape()
|
||||
{
|
||||
$result = $this->view->escape('"<>"');
|
||||
$this->assertEquals('"<>"', $result);
|
||||
$this->assertSame('"<>"', $result);
|
||||
}
|
||||
|
||||
public function testCall()
|
||||
|
@ -48,16 +48,16 @@ class GetViewHelperTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$_GET['a'] = 'b';
|
||||
$result = $this->helper->get(null);
|
||||
$this->assertEquals('?a=b', $result);
|
||||
$this->assertSame('?a=b', $result);
|
||||
$this->helper = new GetViewHelper(new PHPView('any'));
|
||||
$_GET['a'] = 'b';
|
||||
$_GET['b'] = 'a';
|
||||
$result = $this->helper->get(array('a' => 'c'));
|
||||
$this->assertEquals('?a=c&b=a', $result);
|
||||
$this->assertSame('?a=c&b=a', $result);
|
||||
$_GET['a'] = 'b';
|
||||
$_GET['b'] = 'a';
|
||||
$result = $this->helper->get(array('a'));
|
||||
$this->assertEquals('?b=a', $result);
|
||||
$this->assertSame('?b=a', $result);
|
||||
}
|
||||
|
||||
public function testGetWithArray()
|
||||
@ -66,7 +66,7 @@ class GetViewHelperTest extends PHPUnit_Framework_TestCase
|
||||
$_GET['b'] = 'a';
|
||||
$_GET['c'] = array('three' => 'four');
|
||||
$result = $this->helper->get(array('b' => 'c', 'c' => array('five' => 'six')));
|
||||
$this->assertEquals('?a[one]=1&a[two]=2&b=c&c[five]=six', $result);
|
||||
$this->assertSame('?a[one]=1&a[two]=2&b=c&c[five]=six', $result);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user