Lines Matching refs:this

23 		$this->decoratorMock = new DecoratorMock();
24 $this->decoratorHeadings = new DecoratorHeadings($this->decoratorMock);
28 $this->decoratorHeadings->header("text1", 1, 10); // This would open the main matter.
29 $this->decoratorHeadings->header("text2", 1, 20); // This would open the appendix.
30 $this->decoratorHeadings->header("text3", 1, 30); // This is a chapter in the appendix.
31 $this->decoratorHeadings->header("text4", 1, 40); // This is a chapter in the appendix.
33 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text1", 1, 10));
34 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text2", 1, 20));
35 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text3", 3, 30));
36 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text4", 3, 40));
38 $this->assertTrue($this->decoratorMock->noCommands(), "Should not have more commands");
42 $this->decoratorHeadings->header("text1", 2, 10); // This is a chapter in the front matter.
43 $this->decoratorHeadings->header("text2", 2, 20); // This is a chapter in the front matter.
44 $this->decoratorHeadings->header("text3", 1, 30); // This opens the main matter.
45 $this->decoratorHeadings->header("text4", 2, 40); // This is a section in the main matter.
47 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text1", 3, 10));
48 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text2", 3, 20));
49 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text3", 1, 30));
50 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text4", 2, 40));
52 $this->assertTrue($this->decoratorMock->noCommands(), "Should not have more commands");
56 $this->decoratorHeadings->header("text1", 10, 10);
57 $this->assertEquals($this->decoratorMock->nextCommand(), new CommandHeader("text1", 5, 10));