File: VersionTest.php

package info (click to toggle)
php-sabredav 1.8.12-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,848 kB
  • sloc: php: 28,471; sql: 271; python: 221; makefile: 35; xml: 25; sh: 6
file content (17 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace Sabre\CardDAV;

class VersionTest extends \PHPUnit\Framework\TestCase {

    function testString() {

        $v = Version::VERSION;
        $this->assertEquals(-1, version_compare('0.1',$v));

        $s = Version::STABILITY;
        $this->assertTrue($s == 'alpha' || $s == 'beta' || $s =='stable');

    }

}