3declare(strict_types=1);
 
    5use PHPUnit\Framework\TestCase;
 
   26            self::TO_ABSTRACT_IMAGE,
 
   29            self::TO_MEMBERS_GALLERY
 
   32        $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
 
   33        $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
 
   34        $this->assertEquals($object->getExtro(), self::TO_EXTRO);
 
   35        $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
 
   36        $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
 
   37        $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
 
   49        $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
 
   50        $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
 
   51        $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
 
   53        $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
 
   56        $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
 
   57        $this->assertEquals($new_object->getAbstract(), 
"teststring");
 
   58        $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
 
   59        $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
 
   60        $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
 
   61        $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
 
   69        $new_object = $object->
withExtro(
"teststring");
 
   71        $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
 
   72        $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
 
   73        $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
 
   75        $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
 
   78        $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
 
   79        $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
 
   80        $this->assertEquals($new_object->getExtro(), 
"teststring");
 
   81        $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
 
   82        $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
 
   83        $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
 
   93        $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
 
   94        $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
 
   95        $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
 
   97        $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
 
  100        $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
 
  101        $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
 
  102        $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
 
  103        $this->assertEquals($new_object->getAbstractImage(), 
"teststring");
 
  104        $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
 
  105        $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
 
  115        $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
 
  116        $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
 
  117        $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
 
  119        $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
 
  122        $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
 
  123        $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
 
  124        $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
 
  125        $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
 
  126        $this->assertEquals($new_object->getExtroImage(), 
"teststring");
 
  127        $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
 
  137        $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
 
  138        $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
 
  139        $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
 
  141        $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
 
  144        $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
 
  145        $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
 
  146        $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
 
  147        $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
 
  148        $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
 
  149        $this->assertEquals($new_object->getMembersGallery(), 
false);
 
An exception for terminatinating execution or to throw for unit testing.
 
testWithExtroImage(ilLearningSequenceSettings $object)
@depends testCreate
 
testWithExtro(ilLearningSequenceSettings $object)
@depends testCreate
 
testWithAbstractImage(ilLearningSequenceSettings $object)
@depends testCreate
 
testWithMembersGallery(ilLearningSequenceSettings $object)
@depends testCreate
 
testWithAbstract(ilLearningSequenceSettings $object)
@depends testCreate
 
Settings for an LSO (like abstract, extro)
 
withExtroImage(string $path=null)
 
withAbstract(string $abstract)
 
withMembersGallery(bool $members_gallery)
 
withAbstractImage(string $path=null)