friendica-addons-sekb/dav/sabre-vobject/tests/Sabre/VObject/VersionTest.php

18 lines
331 B
PHP
Raw Normal View History

2012-06-03 18:19:28 +00:00
<?php
namespace Sabre\VObject;
class VersionTest extends \PHPUnit_Framework_TestCase {
2012-06-03 18:19:28 +00:00
function testString() {
$v = Version::VERSION;
2012-06-03 18:19:28 +00:00
$this->assertEquals(-1, version_compare('0.9.0',$v));
$s = Version::STABILITY;
2012-06-03 18:19:28 +00:00
$this->assertTrue($s == 'alpha' || $s == 'beta' || $s =='stable');
}
}