/** * 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()); }
/** * tests setter and getter for the division name * * @group data * @group sourcetest */ public function testSetGetName() { $name = 'TestName'; self::assertSame($this->object, $this->object->setName($name)); self::assertSame($name, $this->object->getName()); }