Commit 37311dab by Scott

Tests: strict comparison in BaseTest

parent 5c3057c7
......@@ -5,21 +5,21 @@ class BaseTest extends PHPUnit_Framework_TestCase
public function test__qa_js()
{
$test = qa_js('test');
$this->assertEquals($test, "'test'");
$this->assertSame("'test'", $test);
$test = qa_js('test', true);
$this->assertEquals($test, "'test'");
$this->assertSame("'test'", $test);
$test = qa_js(123);
$this->assertEquals($test, 123);
$this->assertSame(123, $test);
$test = qa_js(123, true);
$this->assertEquals($test, "'123'");
$this->assertSame("'123'", $test);
$test = qa_js(true);
$this->assertEquals($test, 'true');
$this->assertSame('true', $test);
$test = qa_js(true, true);
$this->assertEquals($test, "'true'");
$this->assertSame("'true'", $test);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment