File: fxslcallbackTest.php

package info (click to toggle)
php-fxsl 1.1.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 236 kB
  • sloc: php: 350; xml: 177; sh: 12; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace TheSeer\fXSL;

use PHPUnit\Framework\TestCase;

class fXSLCallbackTest extends TestCase {

    public function testSimple() {
        $object = new \stdClass();

        $callback = new fXSLCallback("test:only");

        $this->assertEquals("test:only", $callback->getNamespace());

        $callback->setObject($object);
        $this->assertEquals($object, $callback->getObject());
    }

}