create database eddy; create user eddy@localhost identified by 'gt84weu$rA^o#HB'; grant all on eddy.* to eddy identified by 'gt84weu$rA^o#HB';
This snippet should be run from MySQL command line.
create database eddy; create user eddy@localhost identified by 'gt84weu$rA^o#HB'; grant all on eddy.* to eddy identified by 'gt84weu$rA^o#HB';
XDEBUGPROFILE=true as shown on video.; XDEBUG Extension zend_extension = "c:/wamp/bin/php/ php5.5.12/zend_ext/ php_xdebug-2.2.5-5.5-vc11-x86_64.dll" ; [xdebug] xdebug.remote_enable = 1 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "c:/wamp/tmp" xdebug.show_local_vars=0Keep in mind that WAMP has two php.ini files. So you need co change the right one.
wget https://phar.phpunit.de/phpunit.phar chmod +x phpunit.phar mv phpunit.phar /usr/local/bin/phpunit
git clone --depth=1 https://github.com/domnikl/DesignPatternsPHP.git
composer install
cat phpunit.xml.dist
phpunit bootstrap="./vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Design Patterns">
<directory suffix="Test.php">Behavioral/*/Tests</directory>
<directory suffix="Test.php">Creational/*/Tests</directory>
<directory suffix="Test.php">More/*/Tests</directory>
<directory suffix="Test.php">Structural/*/Tests</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory>./vendor</directory>
</blacklist>
</filter>
</phpunit>
phpunit -vvv
PHPUnit 5.6.1 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.8-0ubuntu0.16.04.2
Configuration: /var/www/html/DesignPatternsPHP/phpunit.xml.dist
................................................................. 65 / 68 ( 95%)
... 68 / 68 (100%)
Time: 839 ms, Memory: 10.00MB
OK (68 tests, 208 assertions)
phpunit Structural/Composite/Tests/CompositeTest.php
PHPUnit 5.6.1 by Sebastian Bergmann and contributors.
. 1 / 1 (100%)
Time: 103 ms, Memory: 8.00MB
OK (1 test, 1 assertion)
phpunit --testdox
PHPUnit 5.6.1 by Sebastian Bergmann and contributors.
DesignPatterns\Behavioral\ChainOfResponsibilities\Tests\Chain
[x] Can request key in fast storage
[x] Can request key in slow storage
DesignPatterns\Behavioral\Command\Tests\Command
[x] Invocation
...
public function testMyMethod(){
print __METHOD__;
$this->assertEquals("abcd", "abc");
}
phpunit --verbose you'll get1) DesignPatterns\Structural\Composite\Tests\CompositeTest::testMyMethod Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'abcd' +'abc'
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgradeIf you want install newer version of operating system for example you want to migrate from 14.04 to 14.10
sudo do-release-upgradefor troubleshooting visit https://help.ubuntu.com/community/Upgrades#Upgrade_policy
/dev/sdb1 /media/USBDEVICE2 ntfs-3g rw,umask=0000,defaults 0 0 /dev/sdb1 /media/USBDEVICE1 vfat rw,umask=0000,defaults 0 0
[root@flo ~]# lvm vgdisplay [root@flo ~]# lvextend -l +100%FREE /dev/mapper/vg_danube-lv_root [root@florida ~]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_danube-lv_root ext4 8648080 7608976 949924 89% / tmpfs tmpfs 961132 152 960980 1% /dev/shm /dev/sda1 ext4 487652 87980 374072 20% /boot
[root@flo ~]# resize2fs /dev/mapper/vg_danube-lv_root resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/mapper/vg_danube-lv_root is mounted on /; on-line resizing required old desc_blocks = 1, new_desc_blocks = 2 Performing an on-line resize of /dev/mapper/vg_danube-lv_root to 4728832 (4k) blocks. The filesystem on /dev/mapper/vg_danube-lv_root is now 4728832 blocks long. [root@flo ~]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_danube-lv_root ext4 18486004 7612456 10685860 42% / tmpfs tmpfs 961132 304 960828 1% /dev/shm /dev/sda1 ext4 487652 87980 374072 20% /boot