{"id":252677,"date":"2015-03-09T19:09:02","date_gmt":"2015-03-09T15:09:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=252677"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=252677","title":{"rendered":"PHPUnit: \u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 (spreadsheet) \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 (data provider)"},"content":{"rendered":"<p>     \t\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 PHPUnit \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 <a href=\"https:\/\/phpunit.de\/manual\/current\/en\/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers\">\u0440\u0430\u0437\u0434\u0435\u043b<\/a> \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445 (data provider), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u044a\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f <acronym>CSV<\/acronym> \u0444\u0430\u0439\u043b\u0430.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 (spreadsheet)! <\/p>\n<p>  \u0414\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c\u0441\u044f \u0447\u0442\u043e:  <\/p>\n<ul>\n<li>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430-\u0442\u0435\u0441\u0442\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 (\u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d, \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0443\u0447\u0438 <acronym>CSV<\/acronym> \u0444\u0430\u0439\u043b\u043e\u0432)<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0435\u0441\u0442\u0430 (\u0442\u043e \u0440\u0430\u0434\u0438 \u0447\u0435\u0433\u043e \u0432\u0441\u0435 \u0438 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u043e\u0441\u044c)<\/li>\n<\/ul>\n<p>  \u0418 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0434\u0435\u043b\u0443 (\u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0442\u0435\u043a\u0441\u0442\u0430, \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043a\u043e\u0434\u0430), \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u043d\u0438\u0437\u0443 \u0437\u0430\u043c\u0435\u0442\u043a\u0438:<\/p>\n<h4>\u0428\u0430\u0433 #1: \u0417\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438<\/h4>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f (<code>composer.json<\/code>):  <\/p>\n<pre><code class=\"javascript\">{      &quot;name&quot;: &quot;PHPUnitSpreadsheetDataProvider&quot;,     &quot;require&quot;: {         &quot;php&quot;:                &quot;&gt;=5.5.0&quot;,         &quot;phpunit\/phpunit&quot;:    &quot;4.5.*&quot;,         &quot;phpoffice\/phpexcel&quot;: &quot;1.8.*&quot;     },     &quot;autoload&quot;: {         &quot;classmap&quot;: [             &quot;src\/&quot;             ]     } } <\/code><\/pre>\n<h4>\u0428\u0430\u0433 #2: \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430<\/h4>\n<p>  \u0412\u0441\u0451 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0438\u0445 \u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435:  <\/p>\n<pre><code class=\"php\">&lt;?php \/\/ PHPUnitTestCase.php trait PHPUnitSDP_PHPUnitTestCase {     \/**      * @var PHPExcel_Reader_IReader|PHPExcel_Reader_Abstract      *\/     private $_reader;      \/**      * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u044c \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430.      *      * @param string $resource      *      * @return string      *\/     protected function getTestResource($resource = null) {         $path     = (new ReflectionClass($this))-&gt;getFileName();         $dirname  = pathinfo($path, PATHINFO_DIRNAME);         $filename = pathinfo($path, PATHINFO_FILENAME);         $resource = $resource ?: 'xml';          return &quot;{$dirname}\/{$filename}.{$resource}&quot;;     }      \/**      * \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430.      *      * @param string $test      *      * @return array|Iterator      *\/     public function getTestDataProvider($test) {         \/\/ \u0424\u0430\u0439\u043b         $position = 2;         $resource = $this-&gt;getTestResource('data.ods');          \/\/ Reader?         if (is_null($this-&gt;_reader)) {             $this-&gt;_reader = PHPExcel_IOFactory::createReaderForFile($resource);         }          \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438         $this-&gt;_reader-&gt;setReadDataOnly(true);         $this-&gt;_reader-&gt;setLoadSheetsOnly($test);          \/\/ \u0414\u0430\u043d\u043d\u044b\u0435         return new PHPUnitSDP_PHPExcelWorksheetRowIterator(             $this-&gt;_reader-&gt;load($resource)-&gt;getActiveSheet(), $position);     } } <\/code><\/pre>\n<p>  \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0442 \u0434\u0432\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 (\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e):  <\/p>\n<ol>\n<li><code>$position = 2;<\/code> \u2014 \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 (\u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 1) \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0432\u0441\u0451 \u0447\u0442\u043e \u0434\u043e \u043d\u0435\u0451 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 (\u0441\u043c. \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0438\u0436\u0435)<\/li>\n<li><code>$resource<\/code> \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e &quot;<code>\u0418\u043c\u044f\u0422\u0435\u0441\u0442\u0430.data.ods<\/code>&quot;<\/li>\n<\/ol>\n<p>  \u041f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435:  <\/p>\n<pre><code class=\"php\">&lt;?php \/\/ PHPExcelWorksheetRowIterator.php class PHPUnitSDP_PHPExcelWorksheetRowIterator extends PHPExcel_Worksheet_RowIterator {     \/**      * @return array      *\/     public function current() {         $current = array();          foreach (parent::current()-&gt;getCellIterator() as $cell) {             \/* @var $cell PHPExcel_Cell *\/             $current[] = $this-&gt;getValue($cell-&gt;getCalculatedValue());         }          return $current;     }      \/**      * @param mixed $value      *      * @return mixed      *\/     protected function getValue($value) {         switch (mb_strtolower(trim($value))) {             case 'null':                 $value = null;                 break;             case 'true':                 $value = true;                 break;             case 'false':                 $value = false;                 break;             default:                 \/* empty *\/                 break;         }          return $value;     } } <\/code><\/pre>\n<p>  \u0418\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0443\u043b \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445, \u043d\u043e \u043e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u2014 \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445 \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0435\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u0442\u043e\u0442 \u0436\u0435 <code>NULL<\/code>), \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0443\u043b \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<h4>\u0428\u0430\u0433 #3: \u0414\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/eed\/9d2\/7e8\/eed9d27e805640e59f0260bb750bd505.png\" alt=\"image\"\/><\/p>\n<h4>\u0428\u0430\u0433 #4: \u0422\u0435\u0441\u0442<\/h4>\n<p>  <\/p>\n<pre><code class=\"php\">\/\/ SDPTest.php class SDPTest extends PHPUnit_Framework_TestCase {     use PHPUnitSDP_PHPUnitTestCase;      \/**      * @dataProvider getTestDataProvider      *      * @param number $base      * @param number $exp      * @param number $expected      *      * @return void      *\/     public function testPow($base, $exp, $expected) {         $this-&gt;assertEquals($expected, pow($base, $exp));     }          \/**      * @dataProvider getTestDataProvider      *      * @param number $arg      * @param number $expected      *      * @return void      *\/     public function testSqrt($arg, $expected) {         $this-&gt;assertEquals($expected, sqrt($arg));     } } <\/code><\/pre>\n<p>  \u0412\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0432 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 <code>@dataProvider getTestDataProvider<\/code> \u2014 \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u0442\u0435\u0441\u0442\u0430 PHPUnit \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u043d\u0435\u0435 \u043c\u0435\u0442\u043e\u0434 <code>PHPUnitSDP_PHPUnitTestCase::getTestDataProvider()<\/code> \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0441\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h4>\u0428\u0430\u0433 #5: \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n<p>  <\/p>\n<pre><code>PHPUnitSpreadsheetDataProvider&gt; phpunit PHPUnit 4.5.0 by Sebastian Bergmann and contributors.  Configuration read from PHPUnitSpreadsheetDataProvider\/phpunit.xml  ......F  Time: 158 ms, Memory: 8.75Mb  There was 1 failure:  1) SDPTest::testSqrt with data set #4 (4.0, 3.0) Failed asserting that 2.0 matches expected 3.0.  PHPUnitSpreadsheetDataProvider\/tests\/SDPTest.php:28 phar:\/\/PHPUnitSpreadsheetDataProvider\/phpunit.phar\/phpunit\/TextUI\/Command.php:152 phar:\/\/PHPUnitSpreadsheetDataProvider\/phpunit.phar\/phpunit\/TextUI\/Command.php:104  FAILURES! Tests: 7, Assertions: 7, Failures: 1. <\/code><\/pre>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \ud83d\ude42<\/p>\n<p>  \u041f\u0440\u043e\u0435\u043a\u0442: <a href=\"https:\/\/yadi.sk\/d\/AyegnPCqf7i9Y\">yadi.sk\/d\/AyegnPCqf7i9Y<\/a>      \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/252489\/\"> http:\/\/habrahabr.ru\/post\/252489\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 PHPUnit \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 <a href=\"https:\/\/phpunit.de\/manual\/current\/en\/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers\">\u0440\u0430\u0437\u0434\u0435\u043b<\/a> \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445 (data provider), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u044a\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f <acronym>CSV<\/acronym> \u0444\u0430\u0439\u043b\u0430.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-252677","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252677"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/252677\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}