isLite() public method

public isLite ( ) : boolean
return boolean
コード例 #1
0
ファイル: PlatformTest.php プロジェクト: browscap/browscap
 /**
  * tests setter and getter for the match property
  *
  * @group data
  * @group sourcetest
  */
 public function testGetter()
 {
     $match = 'TestMatchName';
     $properties = ['abc' => 'def'];
     $object = new Platform($match, $properties, true, false);
     self::assertSame($match, $object->getMatch());
     self::assertSame($properties, $object->getProperties());
     $this->assertTrue($object->isLite());
     $this->assertFalse($object->isStandard());
 }
コード例 #2
0
ファイル: PlatformTest.php プロジェクト: prox2k/browscap
 /**
  * tests setter and getter for the lite property
  *
  * @group data
  * @group sourcetest
  */
 public function testSetGetIsLite()
 {
     $this->assertFalse($this->object->isLite());
     $this->object->setIsLite(true);
     $this->assertTrue($this->object->isLite());
 }