CORE-POS/IS4C

View on GitHub
fannie/classlib2.0/test/TestWrapper.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace COREPOS\Fannie\API\test;

class TestWrapper
{
    public function __construct($con, $conf, $log)
    {
        $this->connection = $con;
        $this->config = $conf;
        $this->logger = $log;
    }

    protected function runRESTfulPage($page, $form)
    {
        $page->setForm($form);
        $pre = $page->preprocess();
        if ($pre === true) {
            return $page->bodyContent();
        } else {
            return $pre;
        }
    }
}