public function testAddNoteToResearch() { $research = new Research(); $this->assertEquals(0, count($research->notes)); $aNote = $research->addNewNote("This is my first note"); $this->assertEquals(1, $aNote->id); $this->assertEquals("This is my first note", $aNote->text); $this->assertEquals(1, count($research->notes)); $aSecondNote = $research->addNewNote("This is my second note"); $this->assertEquals(2, $aSecondNote->id); $this->assertEquals("This is my second note", $aSecondNote->text); $this->assertEquals(2, count($research->notes)); }