Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22210

Re: phpunit e funzioni di wordpress

From alex <1j9448a02@lnx159sneakemail.com.invalid>
Newsgroups it.comp.www.php
Subject Re: phpunit e funzioni di wordpress
Date 2018-08-30 17:12 +0200
Organization Aioe.org NNTP Server
Message-ID <pm91h3$sj$1@gioia.aioe.org> (permalink)
References <pm8crq$qvp$1@gioia.aioe.org> <pm8nvr$1esb$1@gioia.aioe.org>

Show all headers | View raw


Il 30/08/2018 14:29, g4b0 ha scritto:
> Il Thu, 30 Aug 2018 11:19:54 +0200, alex ha scritto:
> 
>> Purtroppo ha ragione: sanitize_text_field() è una funzione di wordpress.
>> C'è quindi un modo per caricare almeno solo le funzioni (il core) di
>> wordpress?
> 
> Hai provato a dare un'occhiata sul sito ufficiale di WP [1]?
> 
> g4b0
> 
> [1] https://make.wordpress.org/core/handbook/testing/automated-testing/
> phpunit/
> 
> 

È partita bene, ma poi...

$ npm install
loadDep:phantomjs-prebuil ▀ 
╢████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟

 > phantomjs-prebuilt@2.1.16 install 
/mnt/storage-ntfs/pending/abc/wordpress-develop/node_modules/phantomjs-prebuilt
 > node install.js

sh: 1: node: not found
WordPress@5.0.0 /mnt/storage-ntfs/pending/abc/wordpress-develop
└─┬ grunt-contrib-clean@1.0.0
   └── rimraf@2.6.2

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or 
architecture: fsevents@1.2.4
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none was 
installed.
npm WARN WordPress@5.0.0 license should be a valid SPDX license expression
npm ERR! Linux 4.4.0-134-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script 'node 
install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the 
phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install.js
npm ERR! You can get information on how to open an issue for this 
project with:
npm ERR!     npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/storage-ntfs/pending/abc/wordpress-develop/npm-debug.log

$ grunt build
/usr/bin/env: "node": File o directory non esistente

$ grunt watch
/usr/bin/env: "node": File o directory non esistente

$ ../vendor/bin/phpunit
PHP Fatal error:  Class PHPUnit_Util_Test may not inherit from final 
class (PHPUnit\Util\Test) in 
/mnt/storage-ntfs/pending/abc/wordpress-develop/tests/phpunit/includes/phpunit6-compat.php 
on line 18

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

phpunit e funzioni di wordpress alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-08-30 11:19 +0200
  Re: phpunit e funzioni di wordpress g4b0 <g4b0@nospam.com> - 2018-08-30 12:29 +0000
    Re: phpunit e funzioni di wordpress alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-08-30 17:12 +0200
      Re: phpunit e funzioni di wordpress alex <1j9448a02@lnx159sneakemail.com.invalid> - 2018-08-30 17:34 +0200

csiph-web