mirror of
https://github.com/godotengine/godot-question2answer.git
synced 2026-01-01 01:48:37 +03:00
This project lived only on the server without version control. This is now the starting point for the repository.
26 lines
481 B
PHP
26 lines
481 B
PHP
<?php
|
|
|
|
class BaseTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function test__qa_js()
|
|
{
|
|
$test = qa_js('test');
|
|
$this->assertSame("'test'", $test);
|
|
|
|
$test = qa_js('test', true);
|
|
$this->assertSame("'test'", $test);
|
|
|
|
$test = qa_js(123);
|
|
$this->assertSame(123, $test);
|
|
|
|
$test = qa_js(123, true);
|
|
$this->assertSame("'123'", $test);
|
|
|
|
$test = qa_js(true);
|
|
$this->assertSame('true', $test);
|
|
|
|
$test = qa_js(true, true);
|
|
$this->assertSame("'true'", $test);
|
|
}
|
|
}
|