Inheritance: extends PHPUnit_Framework_TestCase
コード例 #1
0
ファイル: TCommand.php プロジェクト: kraken-php/framework
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->cmd = null;
     $this->manager = null;
     $this->runtime = null;
 }
コード例 #2
0
ファイル: SocketTest.php プロジェクト: kraken-php/framework
 /**
  *
  */
 public function tearDown()
 {
     $path = str_replace('unix://', '', $this->tempSocketAddress());
     if (file_exists($path)) {
         unlink($path);
     }
     parent::tearDown();
 }
コード例 #3
0
 /**
  *
  */
 public function tearDown()
 {
     $this->destroyMemoryStream();
     parent::tearDown();
 }
コード例 #4
0
 /**
  *
  */
 public function tearDown()
 {
     ini_set('session.serialize_handler', 'php');
     parent::tearDown();
 }
コード例 #5
0
 /**
  *
  */
 public function setUp()
 {
     $this->prophecy = $this->prophesize(Filesystem::class);
     $this->fs = $this->createFilesystem($this->prophecy->reveal());
     parent::setUp();
 }
コード例 #6
0
ファイル: TSolver.php プロジェクト: kraken-php/framework
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->solver = null;
     $this->runtime = null;
 }
コード例 #7
0
 /**
  * @return LoopInterface|\PHPUnit_Framework_MockObject_MockObject
  */
 public function createLoopMock()
 {
     $loop = parent::createLoopMock();
     $loop->expects($this->any())->method('onTick')->will($this->returnCallback(function ($listener, $args = []) {
         call_user_func_array($listener, $args);
     }));
     return $loop;
 }
コード例 #8
0
ファイル: LoopTest.php プロジェクト: kraken-php/framework
 /**
  *
  */
 public function tearDown()
 {
     fclose($this->fp);
     parent::tearDown();
 }
コード例 #9
0
ファイル: TCommand.php プロジェクト: kraken-php/framework
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->cmd = null;
 }