public static function createMock() { $mock = new FrontendMock(); $mock->setMessage(self::$message); $mock->setNumberOfIterations(self::$numberOfIterations); return $mock; }
public function testMockBuilderOnMagicGetMethod_ExpectsForeachTo() { $this->ninja->amGoingTo('See if __get() created a good mock object with a valid message'); $child = $this->mockModel->foo(); $this->assertEquals(self::MESSAGE, (string) $child); }