getMockBuilder('\Codeception\Step') ->setConstructorArgs(['Do some testing', ['arg1', 'arg2']]) ->setMethods(null) ->getMock(); $step2 = $this->getMockBuilder('\Codeception\Step') ->setConstructorArgs(['Do even more testing without args', []]) ->setMethods(null) ->getMock(); $scenario = new \Codeception\Scenario(new \Codeception\Test\Cept('test', 'testCept.php')); $scenario->addStep($step1); $scenario->addStep($step2); $scenario->setFeature('Do some testing'); $this->assertSame( '

I WANT TO DO SOME TESTING

I do some testing "arg1","arg2"' . '
I do even more testing without args
', $scenario->getHtml() ); } public function testScenarioCurrentNameReturnsTestName() { $cept = new \Codeception\Test\Cept('successfulLogin', 'successfulLoginCept.php'); $scenario = new \Codeception\Scenario($cept); $this->assertSame('successfulLogin', $scenario->current('name')); } }