getConnection()->getSchema()->getServerVersion(), '5.7', '<')) { $this->markTestSkipped('JSON columns are not supported in MySQL < 5.7'); } if (version_compare(PHP_VERSION, '5.6', '<')) { $this->markTestSkipped('JSON columns are not supported in PDO for PHP < 5.6'); } $createdStorage = new Storage(['data' => $actual]); $createdStorage->save(); $foundStorage = Storage::find()->limit(1)->one(); $this->assertNotNull($foundStorage); $foundStorage->data = $modified; $this->assertSame(['data' => $modified], $foundStorage->getDirtyAttributes()); } }