현재 파일을 처리하고 파일 조작을 테스트하기 위해 vsfStream을 사용하려는 이미지 모델에 대한 테스트를 만들고 있습니다.cakephp 2.0 및 PHPUnit이 포함 된 vsfStream
내 테스트에서 vsfClass를 인식하지 못하는 것 같습니다.
vsfStream 라이브러리/응용 프로그램/공급 업체에 vsfStream
입니다다음과 같이 내 ImageTest.php 파일은 다음과 같습니다 클래스 'vfsStream이'을 (를) 찾을 수 없습니다 :
<?php
App::uses('Image', 'Model');
App::uses('vfsStream', 'Vendor');
//App::import('Vendor', 'vfsStream', array('file' => 'vfsStream' . DS . 'vfsStream.php'));
/**
* Image Test Case
*
*/
class ImageTest extends CakeTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array(
'app.image',
'app.contractor',
'app.project',
'app.project_contractor',
'app.project_image'
);
/**
* setUp method
*
* @return void
*/
public function setUp() {
parent::setUp();
$this->Image = ClassRegistry::init('Image');
$this->root = vfsStream::setup('exampleDir');
}
...more code
나는
이 오류 오류를 얻을 파일 : C : \ XAMPP \ htdocs를 \ sgaluminium \ 응용 프로그램 \ 테스트 \ 케이스 \ 모델 \ ImageTest.php가 라인 : 32
어떤 도움이 appr 것 eciated. 감사합니다