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