public function testCall() { $t = new Mcall(); $this->assertSame($t->testCall1(), 'hello public'); $this->assertSame($t->testCall2(), 'hello protected'); $this->assertSame($t->testCall3(), 'hello private'); $this->assertSame($t->testCall4(2, 3), 5); $this->assertSame($t->testCall5(6, 7), 13); $this->assertSame($t->testCall6(4, 5), 9); $this->assertSame($t->testCall7(2, 3), 10); $this->assertSame($t->testCall8(6, 7), 26); $this->assertSame($t->testCall9(4, 5), 18); $this->assertSame($t->testCall10(), 'hello public'); $this->assertSame($t->testCall11(), 'hello protected'); $this->assertSame($t->testCall12(), 'hello private'); $this->assertSame($t->testCall13(2, 3), 5); $this->assertSame($t->testCall14(6, 7), 13); $this->assertSame($t->testCall15(4, 5), 9); }
public function testCall() { $t = new Mcall(); $this->assertTrue($t->testCall1() === "hello public"); $this->assertTrue($t->testCall2() === "hello protected"); $this->assertTrue($t->testCall3() === "hello private"); $this->assertTrue($t->testCall4(2, 3) === 5); $this->assertTrue($t->testCall5(6, 7) === 13); $this->assertTrue($t->testCall6(4, 5) === 9); $this->assertTrue($t->testCall7(2, 3) === 10); $this->assertTrue($t->testCall8(6, 7) === 26); $this->assertTrue($t->testCall9(4, 5) === 18); $this->assertTrue($t->testCall10() === "hello public"); $this->assertTrue($t->testCall11() === "hello protected"); $this->assertTrue($t->testCall12() === "hello private"); $this->assertTrue($t->testCall13(2, 3) === 5); $this->assertTrue($t->testCall14(6, 7) === 13); $this->assertTrue($t->testCall15(4, 5) === 9); }