本文整理汇总了PHP中PHPUnit_Framework_MockObject_MockObject::getPath方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_MockObject_MockObject::getPath方法的具体用法?PHP PHPUnit_Framework_MockObject_MockObject::getPath怎么用?PHP PHPUnit_Framework_MockObject_MockObject::getPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_MockObject_MockObject
的用法示例。
在下文中一共展示了PHPUnit_Framework_MockObject_MockObject::getPath方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testOnAppDownloadedChangeAccessToFiles
public function testOnAppDownloadedChangeAccessToFiles()
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->markTestSkipped('Will not run on OS Windows');
} else {
$file1 = $this->event->getPath() . 'AnimeDB';
$file2 = $this->event->getPath() . 'app/console';
$this->fs->mkdir($this->event->getPath() . 'app');
touch($file1);
touch($file2);
chmod($file1, 0666);
chmod($file2, 0666);
$this->listener->onAppDownloadedChangeAccessToFiles($this->event);
// test
$this->assertEquals(0755, fileperms($file1) & 0777);
$this->assertEquals(0755, fileperms($file2) & 0777);
}
}
示例2: setUp
/**
* {@inheritDoc}
*/
protected function setUp()
{
$this->adminGenerator = new AdminGenerator($this->createModelManagerMock(), __DIR__ . '/../../Resources/skeleton');
$this->bundleMock = $this->createBundleMock();
$this->bundlePath = $this->bundleMock->getPath();
}
示例3: setUp
/**
* {@inheritdoc}
*/
protected function setUp()
{
$this->controllerGenerator = new ControllerGenerator(__DIR__ . '/../../Resources/skeleton');
$this->bundleMock = $this->createBundleMock();
$this->bundlePath = $this->bundleMock->getPath();
}
示例4: testGetPath
/**
* test that initialize sets the path
*
* @return void
*/
public function testGetPath()
{
$this->assertPathEquals(ROOT . DS . 'tests' . DS . 'Fixture/', $this->Task->getPath());
}
示例5: testGetPathException
/**
* @expectedException \Exception
* @expectedExceptionMessage File config key does not exist.
*/
public function testGetPathException()
{
$fileKey = 'not_existing';
$this->configFilePool->getPath($fileKey);
}