Files
godot-question2answer/qa-tests/BaseTest.php
Emi 07ec659385 Importing project into Git
This project lived only on the server without version control. This is now the starting point for the repository.
2023-05-23 20:03:24 +02:00

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);
}
}