Beispiel #1
0
 function case_metadata()
 {
     $this->given($phar = new CUT($this->helper->temporaryFile('.phar')))->when($result = $phar->getMetadata())->then->array($result)->hasKeys(['author', 'license', 'copyright', 'datetime'])->string($result['author'])->isEqualTo('fruux GmbH (https://fruux.com/)')->string($result['license'])->isEqualTo('Modified BSD License (http://sabre.io/license/)')->string($result['copyright'])->isEqualTo('Copyright (C) 2015 fruux GmbH (https://fruux.com/)')->string($result['datetime'])->isEqualTo(date('c', strtotime($result['datetime'])));
 }