📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
tarimscripti.demodesign.com.tr
/
vendor
/
nesbot
/
carbon
/
tests
📝
CopyTest.php
← Geri Dön
<?php /* * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Carbon\Carbon; class CopyTest extends TestFixture { public function testCopy() { $dating = Carbon::now(); $dating2 = $dating->copy(); $this->assertNotSame($dating, $dating2); } public function testCopyEnsureTzIsCopied() { $dating = Carbon::createFromDate(2000, 1, 1, 'Europe/London'); $dating2 = $dating->copy(); $this->assertSame($dating->tzName, $dating2->tzName); $this->assertSame($dating->offset, $dating2->offset); } public function testCopyEnsureMicrosAreCopied() { $micro = 254687; $dating = Carbon::createFromFormat('Y-m-d H:i:s.u', '2014-02-01 03:45:27.'.$micro); $dating2 = $dating->copy(); $this->assertSame($micro, $dating2->micro); } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula