Exemple #1
0
 /**
  * @test
  * @group name
  */
 public function should_test_equality()
 {
     $one = new Name('Karl Van Iseghem');
     $two = new Name('Karl Van Iseghem');
     $three = new Name('Karl van Iseghem');
     $this->assertTrue($one->equals($two));
     $this->assertFalse($one->equals($three));
 }
 /**
  * @test
  * @group currrepo
  */
 public function should_return_structure()
 {
     $n_maths = new Name('wiskunde');
     $course = $this->courseRepo->courseOfName($n_maths);
     $curr = $this->currRepo->curriculumOfCourse($course);
     $n_struc = new Name('chapter 1');
     $structure = $this->currRepo->structure($curr, null, $n_struc->toString(), 'chapter');
     $this->assertInstanceOf('Bakgat\\Notos\\Domain\\Model\\Curricula\\Structure', $structure);
     $this->assertTrue($n_struc->equals($structure->name()));
 }