8ec727c1
曹明
初始化代码提交
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace Codeception\Module;
// here you can define custom functions for CodeGuy
class EmulateModuleHelper extends \Codeception\Module
{
public $assertions = 0;
public function seeEquals($expected, $actual)
{
\PHPUnit_Framework_Assert::assertEquals($expected, $actual);
$this->assertions++;
}
public function seeFeaturesEquals($expected)
{
\PHPUnit_Framework_Assert::assertEquals($expected, $this->feature);
}
public function _before(\Codeception\TestInterface $test)
{
$this->feature = $test->getMetadata()->getFeature();
}
}
|