Commit 952e2ff6 authored by Marc Egger's avatar Marc Egger
Browse files

add new test directory to rethink and recreate test suit. Create one example test.

parent 44ab9091
Pipeline #1151 passed with stage
in 1 minute and 30 seconds
<?php
/**
* Created by PhpStorm.
* User: megger
* Date: 12/17/18
* Time: 9:14 AM
*/
namespace qfq;
use PHPUnit\Framework\TestCase;
require_once(__DIR__ . '/../../../bootstrap.php');
class BindParamTest extends TestCase {
/**
* @covers \qfq\BindParam
*/
public function testParamInitiallyEmptyString() {
$bp = new BindParam;
$this->assertEquals([''], $bp->get());
return $bp;
}
/**
* @covers \qfq\BindParam::add
* @covers \qfq\BindParam::get
* @depends testParamInitiallyEmptyString
*/
public function testAddValues($bp) {
$valInt = 1;
$bp->add($valInt);
$this->assertEquals(['i', 1], $bp->get());
$valStr = 'a';
$bp->add($valStr);
$this->assertEquals(['is', 1, 'a'], $bp->get());
}
}
\ No newline at end of file
Supports Markdown
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