本文整理汇总了PHP中Box::getDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Box::getDate方法的具体用法?PHP Box::getDate怎么用?PHP Box::getDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Box
的用法示例。
在下文中一共展示了Box::getDate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_getters
public function test_getters()
{
/** === Test Data === */
/** === Mocks === */
$mConvert = $this->_mockFor(\Praxigento\Core\Lib\Tool\Convert::class);
$mDate = $this->_mockFor(\Praxigento\Core\Tool\IDate::class);
$mFormat = $this->_mockFor(\Praxigento\Core\Tool\IFormat::class);
$mPeriod = $this->_mockFor(\Praxigento\Core\Tool\IPeriod::class);
$mScheme = $this->_mockFor(\Praxigento\Bonus\Hybrid\Lib\Tool\IScheme::class);
$mDownlineTree = $this->_mockFor(\Praxigento\Downline\Tool\ITree::class);
/** === Test itself === */
$obj = new Box($mConvert, $mDate, $mFormat, $mPeriod, $mScheme, $mDownlineTree);
$this->assertInstanceOf(\Praxigento\Core\Lib\Tool\Convert::class, $obj->getConvert());
$this->assertInstanceOf(\Praxigento\Core\Tool\IDate::class, $obj->getDate());
$this->assertInstanceOf(\Praxigento\Core\Tool\IFormat::class, $obj->getFormat());
$this->assertInstanceOf(\Praxigento\Core\Tool\IPeriod::class, $obj->getPeriod());
$this->assertInstanceOf(\Praxigento\Bonus\Hybrid\Lib\Tool\IScheme::class, $obj->getScheme());
$this->assertInstanceOf(\Praxigento\Downline\Tool\ITree::class, $obj->getDownlineTree());
}