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