getVersions() публичный Метод

public getVersions ( ) : array
Результат array
Пример #1
0
 /**
  * tests setter and getter
  *
  * @group data
  * @group sourcetest
  */
 public function testGetter()
 {
     $name = 'TestName';
     $sortIndex = 42;
     $userAgents = ['abc' => 'def'];
     $versions = [1, 2, 3];
     $object = new Division($name, $sortIndex, $userAgents, true, false, $versions);
     self::assertSame($name, $object->getName());
     self::assertSame($sortIndex, $object->getSortIndex());
     self::assertSame($userAgents, $object->getUserAgents());
     self::assertTrue($object->isLite());
     self::assertFalse($object->isStandard());
     self::assertSame($versions, $object->getVersions());
 }
Пример #2
0
 /**
  * tests setter and getter for versions
  *
  * @group data
  * @group sourcetest
  */
 public function testSetGetVersions()
 {
     $versions = array(1, 2, 3);
     self::assertSame($this->object, $this->object->setVersions($versions));
     self::assertSame($versions, $this->object->getVersions());
 }