Replacement of assertEquals() to assertSame()
This commit is contained in:
@ -97,7 +97,7 @@ class AutoloadBuilderTestVFS extends PHPUnit_Framework_TestCase
|
||||
$this->assertInternalType('array', $this->array);
|
||||
$this->assertArrayHasKey('Load', $this->array);
|
||||
$this->assertArrayNotHasKey('Key', $this->array);
|
||||
$this->assertEquals(2, count($this->array));
|
||||
$this->assertSame(2, count($this->array));
|
||||
}
|
||||
|
||||
public function testAutoloadHasNoAccess()
|
||||
|
@ -30,13 +30,13 @@ class CommandProfilerTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testGetType()
|
||||
{
|
||||
$this->assertEquals('method', $this->profiler->getType());
|
||||
$this->assertSame('method', $this->profiler->getType());
|
||||
$this->assertNotEquals('argument', $this->profiler->getType());
|
||||
}
|
||||
|
||||
public function testGetCommand()
|
||||
{
|
||||
$this->assertEquals('exec', $this->profiler->getCommand());
|
||||
$this->assertSame('exec', $this->profiler->getCommand());
|
||||
$this->assertNotEquals('grep', $this->profiler->getCommand());
|
||||
}
|
||||
}
|
@ -87,7 +87,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertContains('<div style="clear:both; font:12px monospace; margin: 5px; white-space: pre;">', $result);
|
||||
|
||||
|
||||
$this->assertEquals('html', $profiler->end('html'));
|
||||
$this->assertSame('html', $profiler->end('html'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user